Closed kieranpotts closed 1 year ago
git diff shows the unstaged changes by default, but sometimes you also want to check out the staged changes (git diff --staged), or even all of them at once (git diff HEAD).
git diff
git diff --staged
git diff HEAD
diffs = diff --staged diffh = diff HEAD
Source: https://pbassiner.github.io/blog/git_aliases_to_the_rescue.html
git diff
shows the unstaged changes by default, but sometimes you also want to check out the staged changes (git diff --staged
), or even all of them at once (git diff HEAD
).Source: https://pbassiner.github.io/blog/git_aliases_to_the_rescue.html