Tell git to ignore changes
To tell git to ignore any current changes for a particular file, you can type the following command in Terminal (replacing $FILE with the name of the file):
git update-index --assume-unchanged $FILE
To reverse the change, you can alter the line as follows:
git update-index --no-assume-unchanged $FILE