Answers for "how to checkout from remote branch"

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
2

Git - checkout a specific remote branch

$ git checkout -t origin/remote-branch

Branch 'remote-branch' set up to track remote branch 'remote-branch' from 'origin'.
Switched to a new branch 'remote-branch'
Posted by: Guest on April-23-2022

Code answers related to "how to checkout from remote branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language