Answers for "how to checkout a new origin branch"

2

create new branch from origin

git checkout -b nameOfBranch origin/nameOfBranch
Posted by: Guest on March-25-2021
6

Git checkout remote branch in git

git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
Posted by: Guest on November-05-2021

Code answers related to "how to checkout a new origin branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language