Show HN: make git ignore certain changed files in repo
gist.github.com
gist.github.com
[alias]
ignore = !git update-index --assume-unchanged
unignore = !git update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"
Usage: `git ignore foo.rb`, `git unignore foo.rb`; `git ignored` to list all currently ignored files.It's useful for ignoring checked-in files locally, such as overriding app config settings for a local dev server.
Plus, can't beat the license.
I use it at work everyday, it comes in very handy when you need to keep some changes only specific to your local setup (monkey patching, javascript page speed measurements, weird php local config stuff, etc, etc).
Back in the day when I was using SVN, its ignore-on-commit feature (GUI only, but anyway) was incredibly useful.