Git Ignore Current Changes in a File
While the only difference between repositories was the one mentioned above, I issue the following command to ignore the differences.
git update-index --assume-unchanged
Now when I issued a
If I want to work on the HTML file – which will be far less frequent – I issue the following command (in the development repo) to resume tracking changes in the file.
git update-index --no-assume-unchanged
I just need to be disciplined in remembering that I’m ignoring the changes in the HTML file and switching the
src tags to point to the live JS files when I commit changes to the authoritative git repository.