How to list all clean files in a git repository?

Basically I am searching for the git equivalent to hg status -c:

-c –clean show only files without changes

  • How do I fetch/clone only a few branches using git-svn?
  • Change git account in specific project
  • Script to install and compile Python, Django, Virtualenv, Mercurial, Git, LessCSS, etc… on Dreamhost
  • Is there an easy way to push git changes to a Subversion repository with more than one address?
  • How do I clone/pull from GitHub, but push to Kiln?
  • Should I worry about `git fsck` warning: “contains zero-padded file modes”
  • Calling git status lists by default all ‘dirty’ files (i.e. files with changes) and untracked ones – which is fine.

    But sometimes I need to display the complement – all (tracked) files without changes.

    How do I accomplish this with git?

  • How can I show the name of branches on every commit in `git log`
  • Is it possible to get a list of people who have made commits to a particular file?
  • Building Eclipse IDE from scratch - how to choose CDT over JDT?
  • How to work around “multiple merge bases” error in EGit Eclipse plugin?
  • Apartment (ruby gem) to host customers' websites?
  • Git: Obtain remote changes for automated build
  • 2 Solutions collect form web for “How to list all clean files in a git repository?”

    this should do the trick:

    $ git ls-files -m  > /dev/shm/exclude && git ls-files | grep -v -x -f /dev/shm/exclude

    Remember to delete the temporary file afterwards!

    $ git ls-files -t | grep '^H'

    The man page states that -t is deprecated – but I didn’t find a better way. The alternatives the man page mentions does not seem to be sufficient for this problem.

    Git Baby is a git and github fan, let's start git clone.