Skip to content

Instantly share code, notes, and snippets.

@steevhise
Last active April 13, 2017 22:57
Show Gist options
  • Save steevhise/dec9e05c16ef4daf797e2d792a00065c to your computer and use it in GitHub Desktop.
Save steevhise/dec9e05c16ef4daf797e2d792a00065c to your computer and use it in GitHub Desktop.
git commands for "loose ends"

To list branches with commits not merged into master:

git branch --no-merged master

To list the relevant commits:

git cherry -v master <branch>

To see both local and remote: git branch -a --no-merged master

or with -r to just see remote

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