These are the aliases I have set in my .gitconfig for a similar (same?) purpose:<p><pre><code> [alias]
ignore = !git update-index --assume-unchanged
unignore = !git update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"
</code></pre>
Usage: `git ignore foo.rb`, `git unignore foo.rb`; `git ignored` to list all currently ignored files.
For those who aren't familiar with the git subcommand, `git update-index --[no-]assume-unchanged` is at the core of this script.<p>It's useful for ignoring checked-in files <i>locally</i>, such as overriding app config settings for a local dev server.