Skip to content

Instantly share code, notes, and snippets.

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