Checking for a dirty index or untracked files with Git

Posted by Robert Munteanu on Stack Overflow See other posts from Stack Overflow or by Robert Munteanu
Published on 2010-04-17T09:41:37Z Indexed on 2010/04/17 9:53 UTC
Read the original article Hit count: 148

Filed under:
|

How can I check if I have any uncommitted changes in my git repository:

  1. Changes added to the index but not committed
  2. Untracked files

from a script?

git-status seems to always return zero with git version 1.6.4.2.

© Stack Overflow or respective owner

Related posts about git

Related posts about shell-scripting