Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

duplicate clone remote branch locally git

git checkout -b <new_local_branch_name> <remote>/<remote_branch_name>
// example
git checkout -b my_branch origin/my_branch
 
PREVIOUS NEXT
Tagged: #duplicate #clone #remote #branch #locally #git
ADD COMMENT
Topic
Name
8+7 =