https://opensource.com/article/18/6/git-reset-revert-rebase-commands
How to reset, revert, and return to previous states in Git
Reply
To ignore watching/tracking a particular directory/file:
git update-index --assume-unchanged <file>
To undo it and start watching the file again:
git update-index --no-assume-unchanged <file>