Answers for "how to clone master branch in git and push it to another branch"

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
0

clone project from specific branch

git clone -b passwordless-auth [email protected]:BolajiAyodeji/nextjs-blog.git
Posted by: Guest on January-14-2022

Code answers related to "how to clone master branch in git and push it to another branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language