Command git to ignore changes in a file
Sometimes you have danger files like environments, that you shouldn't send with local tests, one way to prevent a mistake is disabling the index using the command:
git update-index --assume-unchanged
Now your IDE will not show changes in that file, when you have done your work, remember back the index:
git update-index --no-assume-unchanged
👍