As you may know, the *.gitignore* file only allows *untracked* files to 
remain *untracked*. If you want to do this per repo, you can use the 
*.git/info/exclude* file, which works exactly like *.gitignore* except it's 
not committed and thus not shared (see the gitignore man 

If what you want is ignoring changes made to an *already tracked* file, you 
can use git-update-index <> with 
the *--assume-unchanged* option. If a file you have *assumed-unchanged* is 
changed upstream, git will (gracefully) fail and you'll have to handle the 
situation manually -- you'll be warned of that change, somewhat. You can 
use this to list the files that are currently *assumed-unchanged*:

$ git ls-files -v | grep --colour=none ^h | cut -c 3-

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to