I\'m trying to figure out how to easily count the files in my uncommitted index.
I\'ve tried:
git status | grep \'#\' | wc -l
but there
If you want something a script can use:
git diff --cached --numstat | wc -l
If you want something human readable:
git diff --cached --stat