Can I 'git commit' a file and ignore its content changes?
问题 Every developer on my team has their own local configuration. That configuration information is stored in a file called devtargets.rb which is used in our rake build tasks. I don't want developers to clobber each other's devtargets file, though. My first thought was to put that file in the .gitignore list so that it is not committed to git. Then I started wondering: is it possible to commit the file, but ignore changes to the file? So, I would commit a default version of the file and then