Skip to content

Instantly share code, notes, and snippets.

@benzittlau
Created May 4, 2011 21:59
Show Gist options
  • Save benzittlau/956122 to your computer and use it in GitHub Desktop.
Save benzittlau/956122 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
@GammachisT
Copy link

Wow amazing code
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment