Skip to content

Commit 294f41d

Browse files
authored
update vi-github-issues.md (fixes #3692) (#3694)
1 parent 5a6bee0 commit 294f41d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pages/vi/vi-github-issues.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,18 @@ Use the following commands to commit and push your changes:
110110
```
111111

112112
2. Display file(s) changes:
113-
- To show specific file(s) change:
113+
- To check specific unstaged file(s) change:
114114

115115
```sh
116116
git diff <file1> <file2> <file3>...
117117
```
118-
119-
- To show all file(s) change:
120-
118+
- To check all unstaged file(s) change:
121119
```sh
122120
git diff
123-
121+
```
122+
- To check all staged file(s) changes (the changes are ready for commit):
123+
```sh
124+
git diff --staged
124125
```
125126

126127
Verify the changes you made, then proceed to the next step. To understand `git diff` output, checkout [Git Diff | Atlassian Git Tutorial](https://www.atlassian.com/git/tutorials/saving-changes/git-diff).

0 commit comments

Comments
 (0)