Skip to content

Instantly share code, notes, and snippets.

@csandman
Created February 12, 2021 20:09
Show Gist options
  • Save csandman/2d1a6f2013a8fcd543365984aee264da to your computer and use it in GitHub Desktop.
Save csandman/2d1a6f2013a8fcd543365984aee264da to your computer and use it in GitHub Desktop.
A git command to remove all files that have been added to the .gitignore from github
git rm -r --cached . && git add . && git commit -am "Remove ignored files" && git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment