Answers for "find the parent branch of a git branch"

0

find the parent branch of a git branch

git log --first-parent
Posted by: Guest on November-15-2020
2

find out a branch a parent branch git

git show-branch -a | grep '\*' | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
Posted by: Guest on April-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language