Answers for "how do i checkout a remote branch"

2

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

Code answers related to "how do i checkout a remote branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language