Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save acadet/18f9ecd10ad4d1dc3a79a7649a4284fd to your computer and use it in GitHub Desktop.
Save acadet/18f9ecd10ad4d1dc3a79a7649a4284fd 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