Answers for "git checkout from remote branch to local"

0

git checkout remote branch

# In order to checkout a remote branch,
# you have to first fetch the contents of the branch
git fetch --all

# In mordern version of Git, cehckout the remote branch like a local branch
git checkout <remotebranch>

# Older versions of Git requiers the creation of a new branch based on the remote
git checkout -b <remotebranch> origin/<remotebranch>
Posted by: Guest on October-03-2021
4

checkout remote branch

git fetch origin 

git checkout –track origin/xyz
Posted by: Guest on April-23-2020
1

pull branch from remote to new local branch

git branch --track <branch-name> origin/<branch-name>
Posted by: Guest on July-06-2021
0

checkout remote git branch

git checkout -b test <name of remote>/test
Posted by: Guest on November-13-2021

Code answers related to "git checkout from remote branch to local"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language