Created
October 27, 2015 21:27
-
-
Save wilrnh/d368f9ef6abdf0825352 to your computer and use it in GitHub Desktop.
Git originating branch name of latest merge
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
git log -n1 --format="%D" $(git log --merges -n 1 --format="%P" | awk '{print $2}') | cut -c 8- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
cut
part strips theorigin/
prefix