databridgevt / covid19

Data analysis of the 2020 COVID-19 pandemic
MIT License
6 stars 2 forks source link

ignoring already tracked files #30

Closed chendaniely closed 4 years ago

chendaniely commented 4 years ago

used for the environ.yaml file for config and keys

https://wildlyinaccurate.com/git-ignore-changes-in-already-tracked-files/

reproduced here:

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>