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 -- {}Written by Toni Uebernickel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Git 
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#