Adding the file to .gitignore doesn’t work, because the file is already tracked. Luckily, Git will allow you to manually “ignore” changes to a file or directory:
git update-index --assume-unchanged <file>
And if you want to start tracking changes again, you can undo the previous command using:
git update-index --no-assume-unchanged <file>
used for the environ.yaml file for config and keys
https://wildlyinaccurate.com/git-ignore-changes-in-already-tracked-files/
reproduced here: