Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save prakhar1989/2053522 to your computer and use it in GitHub Desktop.
Save prakhar1989/2053522 to your computer and use it in GitHub Desktop.
Remove all *.swp files from a git repository
git ls-files | grep '\.swp$' | xargs git rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment