Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
git diff untracked
  • Loading branch information
WSMathias authored Aug 27, 2024
1 parent 5ff7fa0 commit 5858381
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Note: ref1 and ref2 could be `branchNames`, `remoteName/branchName`, commit `SHA
| ` git diff ref1:path/to/file1 ref2:path/to/file2 ` | Show difference between two references |
| ` git diff -- path/to/file ... origin ` | Show file difference between the local file and remote file of the current branch |
| ` git diff branch_name:path/to/file ` | Simplified version of the above command |
| ` git diff -- /dev/null path/to/file ` | Show contents of the untracked file in diff style |

### Git patch
without author info:
Expand Down

0 comments on commit 5858381

Please sign in to comment.