Latest Post

Error: No input file specified.

While trying to run a codeigniter app the other day I came across this error just after I had finished uploading the files and making the ne...

Tuesday, February 3, 2015

How to Ignore Changes in Tracked Files With Git

If you have added files into your GIT repository and at a later stage realized that you do not want to track changes to these files, here is how to achieve this without using .gitignore.

So you would type the following command:

git update-index --assume-unchanged

To start tracking changes again on that file you need to use the following command:

git update-index --no-assume-unchanged

See the git manual for more info

No comments:

Post a Comment

Chitika Ads