Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git checkout branch on different remote

# First fetch all new_remote refs
git fetch new_remote
# Then
git checkout -b <branchname> --track new_remote/<branchname>
 
PREVIOUS NEXT
Tagged: #git #checkout #branch #remote
ADD COMMENT
Topic
Name
5+3 =