Skip to content

Commit 255994b

Browse files
committed
add git diff
1 parent 6c1a13d commit 255994b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,28 @@ git show [<options>] [<object>…​]
11711171

11721172
其他更詳細的介紹,請參考 [https://git-scm.com/docs/git-show](https://git-scm.com/docs/git-show)
11731173

1174+
## git diff
1175+
1176+
以下為官方說明
1177+
1178+
```text
1179+
Show changes between commits, commit and working tree, etc
1180+
```
1181+
1182+
這邊舉幾個例子,
1183+
1184+
檔案還沒進入暫存區 ( Stage ),也就是執行 git add xxx 之前,
1185+
1186+
可以看做了那些修改,
1187+
1188+
![alt tag](https://i.imgur.com/nj5Gz5P.png)
1189+
1190+
也可以看 commits 之間的差異
1191+
1192+
![alt tag](https://i.imgur.com/JMJ48jO.png)
1193+
1194+
其他更詳細的介紹,請參考 [https://git-scm.com/docs/git-diff](https://git-scm.com/docs/git-diff)
1195+
11741196
## git 其他設定
11751197

11761198
我們已經設定了 user.name 以及 user.email ,但 Git 上其實還有很多可設定的東西

0 commit comments

Comments
 (0)