Skip to content

Instantly share code, notes, and snippets.

@stevenharman
Forked from searls/git-unmaster
Last active December 15, 2015 11:59
Show Gist options
  • Select an option

  • Save stevenharman/5256828 to your computer and use it in GitHub Desktop.

Select an option

Save stevenharman/5256828 to your computer and use it in GitHub Desktop.
A git command for logging all the commits on the current branch that are not on another branch as of your nearest common ancestor. Additional git-log flags come along for the ride (e.g. `git unmaster --oneline`)
#!/bin/sh
git log HEAD ^$(git merge-base master HEAD) --no-merges $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment