Every developer has his own local configuration/build/setup files which is already committed in git repo. Now problem is that you have your local-config file and don’t want to commit your local configuration into git repo.
You can’t ignore by gitignore because this file is not ignore already tracked/ committed files and git commit -a will be automatically added your changes into commit stuff.
So you can use the "assume unchanged" to temporarily ignore your changes
git update-index --assume-unchanged <file>
When you want to track all changes again then try it:
git update-index --no-assume-unchanged <file>
Comments
Post a Comment