Skip to content

Instantly share code, notes, and snippets.

@cguldogan
Last active March 2, 2018 16:08
Show Gist options
  • Save cguldogan/bbb616c342ba65189325d0912b077e13 to your computer and use it in GitHub Desktop.
Save cguldogan/bbb616c342ba65189325d0912b077e13 to your computer and use it in GitHub Desktop.
Clean Git Repo
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached
git commit -am "Remove ignored files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment