You can easily check what .gitignore
rule is currently making your file ignored in your git repo with git check-ignore
(you must have git 1.8.3.3+):
cd /path/to/your/repo
git check-ignore -v -- path/to/your/file
(The -v
-- verbose -- option is important to see the rule)