Skip to content

Commit

Permalink
Revert "git-diff: remove 9th example"
Browse files Browse the repository at this point in the history
This reverts commit d31091d.
  • Loading branch information
zlatanvasovic committed Jul 17, 2020
1 parent d31091d commit 700b238
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/common/git-diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

`git diff --summary {{commit}}`

- Create a patch file:

`git diff > {{target_file}}.patch`

- Compare a single file between two branches or commits:

`git diff {{branch_1}}..{{branch_2}} [--] {{path/to/file}}`
Expand Down

0 comments on commit 700b238

Please sign in to comment.