Answers for "git clone pull all branches"

2

git pull all branches

# use bash to be safe!
git fetch --all
git branch -r | grep -v '->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git pull --all
Posted by: Guest on September-24-2021
-1

how to clone repo with all branches

$ git branch -a
* master
  remotes/origin/HEAD
  remotes/origin/master
  remotes/origin/v1.0-stable
  remotes/origin/experimental
Posted by: Guest on May-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language