Created
December 19, 2016 02:34
-
-
Save doxas/46d4ab9f0eaed38dca4581fde9f91cbe to your computer and use it in GitHub Desktop.
show currentbasebranch
This file contains hidden or 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 show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -1 | awk -F'[]~^[]' '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment