Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Commit file and stop tracking
// Lets say we have a file with path 'Project/Private/APIKEYS.txt'
git add Project/Private/APIKEYS.txt
git commit -m "added empty APIKEY file"
git push origin master
// Stop tracking
git update-index --assume-unchanged Project/Private/APIKEYS.txt
// Track again
git update-index --no-assume-unchanged Project/Private/APIKEYS.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment