Skip to content

Instantly share code, notes, and snippets.

@mbylstra
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbylstra/803de31188705dc658b0 to your computer and use it in GitHub Desktop.
Save mbylstra/803de31188705dc658b0 to your computer and use it in GitHub Desktop.
git: tell me which commits are in branch_b but not branch_a
git log branch_a ^branch_b --no-merges
@mbylstra
Copy link
Author

also, remember this if you've just done a git fetch and want to compare remote branches (as github would be doing)

git fetch
git log origin/branch_a ^origin/branch_b --no-merges

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