How to copy the changes from one branch to a sibling branch #143466
-
Select Topic AreaQuestion BodyOur version control structure is as below: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yes to copy changes from prod release to dev, you can:
git checkout dev
git checkout dev
git checkout dev |
Beta Was this translation helpful? Give feedback.
-
There are several ways to achieve this. Method via GitHubLet’s assume you have two sibling branches named Production and Dev, both branched out from the main branch Master, and you want to merge changes between these two branches without affecting Master. Here are the steps to accomplish this:
|
Beta Was this translation helpful? Give feedback.
-
Hi @guostong , You can merge the changes from
git checkout Dev
git merge Production release
git push origin Dev |
Beta Was this translation helpful? Give feedback.
Yes to copy changes from prod release to dev, you can:
git checkout dev
git merge production-release-branch
git checkout dev
git cherry-pick
git checkout dev
git rebase production-release-branch