@@ -169,7 +169,21 @@ <h1>GitHub 漫游指南</h1>
169
169
< li > < a href ="#开源项目维护 "> 开源项目维护</ a > < ul >
170
170
< li > < a href ="#release "> Release</ a > </ li >
171
171
</ ul > </ li >
172
- < li > < a href ="#git-工具推荐 "> Git 工具推荐</ a > </ li >
172
+ < li > < a href ="#git-与-github-工具推荐 "> Git 与 GitHub 工具推荐</ a > < ul >
173
+ < li > < a href ="#git-命令行增强 "> Git 命令行增强</ a > < ul >
174
+ < li > < a href ="#diff-so-fancy "> < a href ="https://github.com/so-fancy/diff-so-fancy "> diff-so-fancy</ a > </ a > </ li >
175
+ < li > < a href ="#git-extras "> < a href ="https://github.com/tj/git-extras "> git-extras</ a > </ a > </ li >
176
+ </ ul > </ li >
177
+ < li > < a href ="#intellij-idea "> Intellij IDEA</ a > </ li >
178
+ < li > < a href ="#gitgithub桌面增强 "> Git、GitHub桌面增强</ a > < ul >
179
+ < li > < a href ="#sourcetree "> SourceTree</ a > </ li >
180
+ < li > < a href ="#github-desktop "> GitHub Desktop</ a > </ li >
181
+ </ ul > </ li >
182
+ < li > < a href ="#git-娱乐 "> Git 娱乐</ a > < ul >
183
+ < li > < a href ="#githug "> githug</ a > </ li >
184
+ < li > < a href ="#gource "> Gource</ a > </ li >
185
+ </ ul > </ li >
186
+ </ ul > </ li >
173
187
< li > < a href ="#github用户分析 "> GitHub用户分析</ a > < ul >
174
188
< li > < a href ="#生成图表 "> 生成图表</ a > < ul >
175
189
< li > < a href ="#数据解析 "> 数据解析</ a > </ li >
@@ -1790,10 +1804,103 @@ <h2 id="鼓励吸引贡献者">鼓励、吸引贡献者</h2>
1790
1804
< p > 哪怕只是一个错误字的 PR,那么你也可以 merge,啊哈哈~。然后,就有人帮你宣传了,『我给 xxx 项目一个 PR 了』。刚毕业的时候,我也是从这种类型的 PR 做起的~~。</ p >
1791
1805
< h1 id ="开源项目维护 "> 开源项目维护</ h1 >
1792
1806
< h2 id ="release "> Release</ h2 >
1793
- < h1 id ="git-工具推荐 "> Git 工具推荐</ h1 >
1807
+ < h1 id ="git-与-github- 工具推荐 "> Git 与 GitHub 工具推荐</ h1 >
1794
1808
< p > 至于我的日常用的 Git 观看工具,一个是 WebStorm 和 Intellij IDEA 自带的,一个则是 SourceTree。</ p >
1795
1809
< p > 由于日常用的开发工是 Intellij IDEA 企业版,所以就有点依赖于这个工具了。最常用的功能便是:< strong > 修复 Bug 时,对于文件修改的追溯</ strong > 。了解某行代码修改的原因,对应的修改人等等。</ p >
1796
1810
< p > 而 SourceTree 则方便用来查看一些非我写的项目,寻找其中的一些问题。个中缘由便是:< strong > Intelli IDEA 刚打开某个项目的时候,需要花费大量的时间 index</ strong > ,只可惜现有的 SourceTree 客户端都需要登录 Atlassian 账户了。</ p >
1811
+ < h2 id ="git-命令行增强 "> Git 命令行增强</ h2 >
1812
+ < h3 id ="diff-so-fancy "> < a href ="https://github.com/so-fancy/diff-so-fancy "> diff-so-fancy</ a > </ h3 >
1813
+ < figure >
1814
+ < img src ="git-diff-screenshot.png " alt ="diff so fancy 截图 " /> < figcaption > diff so fancy 截图</ figcaption >
1815
+ </ figure >
1816
+ < h3 id ="git-extras "> < a href ="https://github.com/tj/git-extras "> git-extras</ a > </ h3 >
1817
+ < p > < strong > Ubuntu</ strong > </ p >
1818
+ < pre > < code > $ sudo apt-get install git-extras</ code > </ pre >
1819
+ < p > < strong > Mac OS X with Homebrew</ strong > </ p >
1820
+ < pre > < code > $ brew install git-extras</ code > </ pre >
1821
+ < pre > < code > $ git-summary
1822
+
1823
+
1824
+ project : github-roam
1825
+ repo age : 2 years, 7 months
1826
+ active : 40 days
1827
+ commits : 124
1828
+ files : 101
1829
+ authors :
1830
+ 72 Fengda HUANG 58.1%
1831
+ 29 Fengda Huang 23.4%
1832
+ 8 Phodal HUANG 6.5%
1833
+ 3 Phodal Huang 2.4%
1834
+ 2 yangpei3720 1.6%
1835
+ 2 WangXiaolong 1.6%
1836
+ 2 TZS 1.6%
1837
+ 1 安正超 0.8%
1838
+ 1 Li 0.8%
1839
+ 1 Qiuer 0.8%
1840
+ 1 SCaffrey 0.8%
1841
+ 1 oncealong 0.8%
1842
+ 1 zminds 0.8%</ code > </ pre >
1843
+ < h2 id ="intellij-idea "> Intellij IDEA</ h2 >
1844
+ < p > Intellij IDEA</ p >
1845
+ < h2 id ="gitgithub桌面增强 "> Git、GitHub桌面增强</ h2 >
1846
+ < h3 id ="sourcetree "> SourceTree</ h3 >
1847
+ < p > gitflow 分支合并、查看</ p >
1848
+ < figure >
1849
+ < img src ="sourcetree.jpg " alt ="SourceTree 截图 " /> < figcaption > SourceTree 截图</ figcaption >
1850
+ </ figure >
1851
+ < h3 id ="github-desktop "> GitHub Desktop</ h3 >
1852
+ < figure >
1853
+ < img src ="github-desktop.jpg " alt ="GitHub Desktop " /> < figcaption > GitHub Desktop</ figcaption >
1854
+ </ figure >
1855
+ < h2 id ="git-娱乐 "> Git 娱乐</ h2 >
1856
+ < h3 id ="githug "> githug</ h3 >
1857
+ < pre > < code > $ githug
1858
+
1859
+ ********************************************************************************
1860
+ * Githug *
1861
+ ********************************************************************************
1862
+ No githug directory found, do you wish to create one? [yn] y
1863
+ Welcome to Githug!
1864
+
1865
+ Name: init
1866
+ Level: 1
1867
+ Difficulty: *
1868
+
1869
+ A new directory, `git_hug`, has been created; initialize an empty repository in it.</ code > </ pre >
1870
+ < pre > < code > $ githug play
1871
+
1872
+ ********************************************************************************
1873
+ * Githug *
1874
+ ********************************************************************************
1875
+ Congratulations, you have solved the level!
1876
+
1877
+ Name: config
1878
+ Level: 2
1879
+ Difficulty: *
1880
+
1881
+ Set up your git name and email, this is important so that your commits can be identified.</ code > </ pre >
1882
+ < pre > < code > #1: init
1883
+ #2: config
1884
+ #3: add
1885
+ #4: commit
1886
+ #5: clone
1887
+ #6: clone_to_folder
1888
+ #7: ignore
1889
+ #8: include
1890
+ #9: status
1891
+ #10: number_of_files_committed
1892
+ #11: rm
1893
+ #12: rm_cached
1894
+ #13: stash
1895
+ #14: rename
1896
+ #15: restructure
1897
+ #16: log
1898
+ #17: tag
1899
+ #...</ code > </ pre >
1900
+ < h3 id ="gource "> Gource</ h3 >
1901
+ < figure >
1902
+ < img src ="gource.jpg " alt ="Gource 历史 " /> < figcaption > Gource 历史</ figcaption >
1903
+ </ figure >
1797
1904
< h1 id ="github用户分析 "> GitHub用户分析</ h1 >
1798
1905
< h2 id ="生成图表 "> 生成图表</ h2 >
1799
1906
< p > 如何分析用户的数据是一个有趣的问题,特别是当我们有大量的数据的时候。除了< code > matlab</ code > ,我们还可以用< code > numpy</ code > +< code > matplotlib</ code > </ p >
0 commit comments