I am tracking a project with git. There are some Xcode project files in the working copy that I want to keep tracking, but do not want to see in diffs, because there are alw
Just incase someone else has the same pain we had. We wanted to exclude a file that had already been committed.
This post was way more useful: working with .git/info/exclude too late
Specifically what you need to ignore a file is actually use the command git remove See git rm (http://www.kernel.org/pub/software/scm/git/docs/git-rm.html)
you test it by going
git rm --dry-run *.log
(if you say wanted to exclude all the log files)
this will output what would be excluded if you ran it.
then
you run it by going
git rm *.log
(or whatever filename path / expression you want to)