Answers for "copy one branch to another git"

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

git copy folder from another branch

//copy directory/file from different branch
git checkout master -- dirname
Posted by: Guest on December-01-2021
0

git copy file from another branch

git show commit_id:path/to/file > path/to/file
Posted by: Guest on June-16-2020
-1

copy files from another branch git

$ git checkout master
Posted by: Guest on November-25-2020

Code answers related to "copy one branch to another git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language