Skip to content

Instantly share code, notes, and snippets.

@gingray
Created August 18, 2015 08:43
Show Gist options
  • Save gingray/a34302598855ee77f47c to your computer and use it in GitHub Desktop.
Save gingray/a34302598855ee77f47c to your computer and use it in GitHub Desktop.
git command snippets
remove all local merged branches (suppose ur main bracnh is master)
git branch --merged master | grep -v master | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment