Skip to content

Instantly share code, notes, and snippets.

@jmrnilsson
Last active April 29, 2019 11:41
Show Gist options
  • Save jmrnilsson/5c59830be3b3f3293d4f189990023736 to your computer and use it in GitHub Desktop.
Save jmrnilsson/5c59830be3b3f3293d4f189990023736 to your computer and use it in GitHub Desktop.
Find commits ahead of branch no merge commits
git log --no-merges --format=format:%H master..a_branch | sort > master.ahead
git log --no-merges --format=format:%H development..a_branch.development | sort > development.ahead
diff master.ahead development.ahead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment