Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

list all local branches off a branhc

git show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed 's/.*[(.*)].*/1/' | sed 's/[^~].*//'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #local #branches #branhc
ADD COMMENT
Topic
Name
1+6 =