I have a file that has a variable that points to API which is in the local system.
There are 3 developers and every time we pull we have to change the variable back to our respective IP.
This is a tracked file and I read that gitignore won't ignore tracked files. So I did what this answer said: https://stackoverflow.com/a/23673910/5599387
But every time I pull I get:
Your local changes to the following files would be overwritten by merge: Please commit your changes or stash them before you merge. Aborting
How do I not commit any changes made to that file by any developer