Answers for "can i copy one branch to a new repo"

1

copy from master to branch

#If you can use: git merge 
git checkout old_branch.
git checkout master . #With period
git add --all
git commit -m "Copy from master to old_branch"
git push -u origin old_branch
Posted by: Guest on October-19-2021
1

clone a specific branch

clone a specific branch... 
$ git clone -b <branchName> <clone with HTTPs link>
Posted by: Guest on June-30-2021

Code answers related to "can i copy one branch to a new repo"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language