Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save migueltg/7dd1ce9d884f496627961e40e8d39546 to your computer and use it in GitHub Desktop.
Save migueltg/7dd1ce9d884f496627961e40e8d39546 to your computer and use it in GitHub Desktop.
# 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