Skip to content

Instantly share code, notes, and snippets.

@coldclimate
Last active December 19, 2015 08:38
Show Gist options
  • Save coldclimate/5926630 to your computer and use it in GitHub Desktop.
Save coldclimate/5926630 to your computer and use it in GitHub Desktop.
Find the commit on Master that was HEAD when branch FEATURE was branched (I'm not 100% on this wizardry) (found in http://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git)
diff -u <(git rev-list --first-parent FEATURE) \
<(git rev-list --first-parent master) | \
sed -ne 's/^ //p' | head -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment