Skip to content

Instantly share code, notes, and snippets.

@alcidesqueiroz
Created June 29, 2014 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alcidesqueiroz/86ceed070b1d5e25a28a to your computer and use it in GitHub Desktop.
Save alcidesqueiroz/86ceed070b1d5e25a28a to your computer and use it in GitHub Desktop.
Git: Remove files in .gitignore from a repository
git ls-files -i --exclude-from=.gitignore | xargs git rm --cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment