kieranpotts / dotfiles

My UNIX dotfiles.
MIT License
1 stars 0 forks source link

More Git diff aliases #73

Closed kieranpotts closed 1 year ago

kieranpotts commented 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).

diffs = diff --staged
diffh = diff HEAD

Source: https://pbassiner.github.io/blog/git_aliases_to_the_rescue.html