I have a file users.csv
which is pushed to the repository. This csv file gets updated every time the test suite is run.
I don't want the file to be shown as modified in my local machine every time the test suite is run. In that case i assume i can use the command
git update-index --assume-unchanged [<file> ...]
Ref: Can I 'git commit' a file and ignore its content changes?
- Now, assume that another developer pulled all the changes that i pushed. When the test suite is run on his machine, the same csv should not show as modified and the file should be still there in his machine.
I assume adding the file in .gitignore will not help since the file is already tracked.
Any idea on how to achieve this?