Show ignored files in Git

2009 January 28

How do you see or find ignored, untracked files in your Git working copy?

Files which do not show up in git status because they match a pattern/line in .gitignore or .git/info/exclude with this command:

Git 1.6:
git ls-files --others -i --exclude-standard

Git 1.4, 1.5:
git ls-files --others -i \
--exclude-from="`git rev-parse --git-dir`/info/exclude" \
--exclude-per-directory=.gitignore

read more…

Advertisements

Comments are closed.

%d bloggers like this: