Prevent git from detecting changes in the specific files
February 12. 2016
0 Comments
- Posted in:
- GIT
A nice feature of GIT when working in a collaborative environment is preventing detection of changes for a specific file.
Prevent detection:
Prevent detection:
git update-index --assume-unchanged [path]
Turn it on again:git update-index --no-assume-unchanged [path]
The path name is case sensitive!
You can still pull the changes from the server. Getting a list of the ignored files, I couldn't make it happen.