After cloning a repository, you can have git not track changes you make to one (or multiple) files.
git update-index --assume-unchanged file
After this command is run, the repository continues tracking the file. It might have changes that git will want to commit.
git update-index --no-assume-unchanged file
In case you made changes while
--assume-unchanged was on and don't want to keep the changes on the file: Roll-back to where the repository is when you want to pull or push changes.
git checkout -- file