git hub command to know parent branch code example
Example: github get parent branch
git show-branch -a \| grep '\*' \| grep -v `git rev-parse --abbrev-ref HEAD` \| head -n1 \| sed 's/.*\[\(.*\)\].*/\1/' \| sed 's/[\^~].*//'
git show-branch -a \| grep '\*' \| grep -v `git rev-parse --abbrev-ref HEAD` \| head -n1 \| sed 's/.*\[\(.*\)\].*/\1/' \| sed 's/[\^~].*//'