Skip to content

Commit 627942e

Browse files
author
Shambhu Shrestha
committed
commit all
1 parent 8771c19 commit 627942e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git/basics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
5. To unstage a file `git reset HEAD file`. To unstage all files `git reset HEAD`.
88
6. If a staged file is modified, the same file will appear under *staged* and *modified*.
99
7. Create a new branch and switch to it : `git checkout -b branch1`.
10-
8.
10+
8. See Modified unstaged changes: `git diff` (diffs modified and staged)
11+
9. See staged changes: `git diff --staged` (diffs staged and last commit)

0 commit comments

Comments
 (0)