Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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/[^~].*//'
 
PREVIOUS NEXT
Tagged: #find #branch #parent #branch #git
ADD COMMENT
Topic
Name
9+7 =