The git remote show <origin name> command will list all branches (including un-tracked branches). Then you can find the remote branch name ... ... <看更多>
Try this. $1 should be the parent dir containing all of your repositories (or use "." for the current dir): #!/bin/bash function git_branches() { if [[ -z ... ... <看更多>