Skip to content

Instantly share code, notes, and snippets.

@juancolacelli
Last active April 9, 2020 17:14
Show Gist options
  • Save juancolacelli/62f06d3cbe304ad492e1 to your computer and use it in GitHub Desktop.
Save juancolacelli/62f06d3cbe304ad492e1 to your computer and use it in GitHub Desktop.
Apply gitignore on an existing repository already tracked
git clean -xdf
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment