Show HN: make git ignore certain changed files in repo(gist.github.com)
gist.github.com
Show HN: make git ignore certain changed files in repo
https://gist.github.com/1238452
5 comments
For those who aren't familiar with the git subcommand, `git update-index --[no-]assume-unchanged` is at the core of this script.
It's useful for ignoring checked-in files locally, such as overriding app config settings for a local dev server.
It's useful for ignoring checked-in files locally, such as overriding app config settings for a local dev server.
How is this better than creating a local branch ?
This has nothing to do with branching. Here is the idea I tried to replicate http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-...
[deleted]
I'm a little confused by what this does... Can't you just not 'git add' a file to have git ignore its changes?
I'm going to try this next week; this is something we could use at work.
Plus, can't beat the license.
Plus, can't beat the license.
I'd be happy to hear your testimonials!
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).
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).
Usage: `git ignore foo.rb`, `git unignore foo.rb`; `git ignored` to list all currently ignored files.