I have committed a certain file. Now I don't need GIT to track changes in this file. How can I do it better?
If I understood you correctly, then you need to do the following
git update-index --assume-unchanged your_file
After that, git will not react to any changes in this file, to reverse this behavior, run the following
git update-index --no-assume-unchanged your_file