Git exlude / ignore changes on particular file for temporary


This is always happen when you working with different environment like Production, Staging, Release Branch, etc.
To make some particular file being ignored for temporary, we can use “git update-index”.

Here is to disable tracking:

1
git update-index –assume-unchanged <file>

Then to enable track updates on this particular file:

1
git update-index –no-assume-unchange <file>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.