Answers for "copy git branch to another"

3

copy files from another branch git

# git checkout <branch> <path>
$ git checkout other_branch world.txt
Posted by: Guest on November-25-2020
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

Code answers related to "copy git branch to another"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language