How to ignore local changes in Git
This is a really nice solution that I was looking for. I use this to make configuration file changes on my staging system without the need to ignore the whole config file.
Add your config file in .git/info/exclude and then use git's update-index:
$ git update-index --assume-unchanged path/to/fileÂ
For a better explanation take a look at this blog article:
Ignoring local changes with Git
If you have configuration files or any other files in the local repository that you would like to keep as they are without the danger of adding them by mistake in a commit, you can specify that using the local git exclude file and update-index....
#Git + #Gerrit + #Jenkins are an amazing and powerful combination. Need to finish that implementation also for work. And the integration into #Eclipse works nice, too.
♲ Twitter / befreax
befreax: The New http://t.co/rHfhiWdf = Gerrit + Jenkins + GitHub http://t.co/Ks4VTode
♲ Twitter / befreax
befreax: The New http://t.co/rHfhiWdf = Gerrit + Jenkins + GitHub http://t.co/Ks4VTode
This entry was edited (12 years ago)
This website is tracked using the Matomo analytics tool. If you do not want that your visits are logged in this way you can set a cookie to prevent Matomo / Piwik from tracking further visits of the site (opt-out).
Simon L'nu
in reply to Klaus Weidenbach • •