Skip to content

Instantly share code, notes, and snippets.

@bsidhom
Created July 10, 2018 21:03
Show Gist options
  • Save bsidhom/4d8bb0c1cd22150399c0b91251488bdf to your computer and use it in GitHub Desktop.
Save bsidhom/4d8bb0c1cd22150399c0b91251488bdf to your computer and use it in GitHub Desktop.
Print graphical subtree of all branches that separate from master from the same point as the current HEAD
# The following is very useful for keeping track of ongoing work in dependent branches, e.g., before rebasing.
git log --graph --oneline --decorate --all --ancestry-path --not master $(git merge-base master HEAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment