Last active
December 19, 2015 08:38
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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