Last Updated: February 25, 2016
·
676
· havvg

git diff of staged files

This alias shows the git diff between files in the staging area and the current working directory of files in the staging area only.

[alias]
    di = diff
    staged = diff --cached
    ls-staged = diff-index --cached --name-only HEAD
    di-staged = !git ls-staged | xargs git di -- {}