Skip to content

Commit cd86a8d

Browse files
committed
[TOOLS] init git tool
1 parent 5460e22 commit cd86a8d

File tree

5 files changed

+108
-1
lines changed

5 files changed

+108
-1
lines changed

chapters/10-git-tools.md

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,115 @@
1-
Git 工具推荐
1+
Git 与 GitHub 工具推荐
22
===
33

44
至于我的日常用的 Git 观看工具,一个是 WebStorm 和 Intellij IDEA 自带的,一个则是 SourceTree。
55

66
由于日常用的开发工是 Intellij IDEA 企业版,所以就有点依赖于这个工具了。最常用的功能便是:**修复 Bug 时,对于文件修改的追溯**。了解某行代码修改的原因,对应的修改人等等。
77

88
而 SourceTree 则方便用来查看一些非我写的项目,寻找其中的一些问题。个中缘由便是:**Intelli IDEA 刚打开某个项目的时候,需要花费大量的时间 index**,只可惜现有的 SourceTree 客户端都需要登录 Atlassian 账户了。
9+
10+
Git 命令行增强
11+
---
12+
13+
### [diff-so-fancy](https://github.com/so-fancy/diff-so-fancy)
14+
15+
![diff so fancy 截图](git-diff-screenshot.png)
16+
17+
### [git-extras](https://github.com/tj/git-extras)
18+
19+
**Ubuntu**
20+
21+
```
22+
$ sudo apt-get install git-extras
23+
```
24+
25+
**Mac OS X with Homebrew**
26+
27+
```
28+
$ brew install git-extras
29+
```
30+
31+
```
32+
$ git-summary
33+
34+
35+
project : github-roam
36+
repo age : 2 years, 7 months
37+
active : 40 days
38+
commits : 124
39+
files : 101
40+
authors :
41+
72 Fengda HUANG 58.1%
42+
29 Fengda Huang 23.4%
43+
8 Phodal HUANG 6.5%
44+
3 Phodal Huang 2.4%
45+
2 yangpei3720 1.6%
46+
2 WangXiaolong 1.6%
47+
2 TZS 1.6%
48+
1 安正超 0.8%
49+
1 Li 0.8%
50+
1 Qiuer 0.8%
51+
1 SCaffrey 0.8%
52+
1 oncealong 0.8%
53+
1 zminds 0.8%
54+
```
55+
56+
Intellij IDEA
57+
---
58+
59+
Intellij IDEA
60+
61+
Git、GitHub桌面增强
62+
---
63+
64+
### SourceTree
65+
66+
gitflow 分支合并、查看
67+
68+
![SourceTree 截图](sourcetree.jpg)
69+
70+
### GitHub Desktop
71+
72+
![GitHub Desktop](github-desktop.jpg)
73+
74+
Git 娱乐
75+
---
76+
77+
### githug
78+
79+
```
80+
$ githug
81+
82+
********************************************************************************
83+
* Githug *
84+
********************************************************************************
85+
No githug directory found, do you wish to create one? [yn] y
86+
Welcome to Githug!
87+
88+
Name: init
89+
Level: 1
90+
Difficulty: *
91+
92+
A new directory, `git_hug`, has been created; initialize an empty repository in it.
93+
```
94+
95+
96+
```
97+
$ githug play
98+
99+
********************************************************************************
100+
* Githug *
101+
********************************************************************************
102+
Congratulations, you have solved the level!
103+
104+
Name: config
105+
Level: 2
106+
Difficulty: *
107+
108+
Set up your git name and email, this is important so that your commits can be identified.
109+
```
110+
111+
112+
113+
### Gource
114+
115+
![Gource 历史](gource.jpg)

img/git-diff-screenshot.png

287 KB
Loading

img/github-desktop.jpg

167 KB
Loading

img/gource.jpg

65.2 KB
Loading

img/sourcetree.jpg

181 KB
Loading

0 commit comments

Comments
 (0)