Answers for "all braches git"

9

get all branches git

$ git branch -a. If you require only listing the remote branches from Git Bash then use this command:
$ git branch -r. You may also use the show-branch command for seeing the branches and their commits as follows:
$ git show-branch.
Posted by: Guest on October-05-2020
0

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/[\^~].*//'
Posted by: Guest on November-26-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language