Answers for "copy code from one branch to another branch in git"

4

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 branch to master

git checkout master.
git checkout branch_from_which_you_have_to_copy_the_files_to_master . (with period)
git add --all.
git push -u origin master.
git commit -m "copy from branch to master"
Posted by: Guest on November-26-2020

Code answers related to "copy code from one branch to another branch in git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language