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> |