Sometimes we need to keep a file in the project but do not want to track the changes, for example the config/configuration file or other setting file.
git
has a solution to do this. First change the file you do not want to be tracked and use the following command.
git update-index --assume-unchanged FILE_NAME
and if you want to track the changes again use this command,
git update-index --no-assume-unchanged FILE_NAME
thanks alot, much appreciated