Checking for a dirty index or untracked files with Git
- by Robert Munteanu
How can I check if I have any uncommitted changes in my git repository:
Changes added to the index but not committed
Untracked files
from a script?
git-status seems to always return zero with git version 1.6.4.2.