Skip to content

Instantly share code, notes, and snippets.

@roadsideseb
Created October 22, 2015 17:18
Show Gist options
  • Select an option

  • Save roadsideseb/52bb1a9a0bd58e3ef32e to your computer and use it in GitHub Desktop.

Select an option

Save roadsideseb/52bb1a9a0bd58e3ef32e to your computer and use it in GitHub Desktop.
Cheatsheet of git(-related) commands
# cleanup all local branches that have been merged
git branch --delete $(git branch --merged | grep -v master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment