Skip to content

Instantly share code, notes, and snippets.

@s3ni0r
Created July 5, 2016 09:36
Show Gist options
  • Save s3ni0r/d3fe79dd8ef90c6a434305dbe9f8f2ac to your computer and use it in GitHub Desktop.
Save s3ni0r/d3fe79dd8ef90c6a434305dbe9f8f2ac to your computer and use it in GitHub Desktop.
Remove all ignored files from git index
git ls-files --ignored --exclude-standard | sed 's/.*/"&"/' | xargs git rm -r --cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment