Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2018 19:09
What would you like to do?
Resync git repo with new gitignore file
# rm all files
git rm -r --cached .
# add all files as per new .gitignore
git add .
# now, commit for new .gitignore to apply
git commit -m ".gitignore is now working"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment