Skip to content

Instantly share code, notes, and snippets.

@igorb
Created March 5, 2015 10:04
Show Gist options
  • Save igorb/8696fab31ef8e409913e to your computer and use it in GitHub Desktop.
Save igorb/8696fab31ef8e409913e to your computer and use it in GitHub Desktop.
remove branches & temporary files
git checkout master && git branch | grep -v "master" | xargs git branch -D
find . -name \*.swo -type f -delete
find . -name \*.swp -type f -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment