Skip to content

Commit c27a289

Browse files
committed
Merge pull request #1 from MMD-Coding/master
Fixed typos and added a usefull git diff mode - Thanks to @MMD-Coding
2 parents ede135e + 0aa6252 commit c27a289

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

git_cheat_sheet.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343

4444
git diff
4545

46+
* Show a summary of changes. A bit more than `git st`
47+
48+
git diff --stat
49+
4650
* Difference between staged files and HEAD
4751

4852
git diff --cached
@@ -60,7 +64,7 @@
6064

6165
git diff <foo> <bar>
6266

63-
_`+` line does exist in »foo« but not in »bar«, `-` reverse_
67+
_`+` line does exist in »bar« but not in »foo«, `-` reverse_
6468

6569
## Show history
6670

@@ -86,7 +90,7 @@
8690

8791
* Show all commits with a certain word in commit message
8892

89-
git log git log --grep=<searchword>
93+
git log --grep=<searchword>
9094

9195
## Commit
9296

0 commit comments

Comments
 (0)