📌  相关文章
📜  如何从另一个分支获取更新 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:51.589000             🧑  作者: Mango

代码示例1
//go to the master branch our-team
        git checkout our-team

//  pull all the new changes from our-team branch
        git pull

//  go to your branch featurex
        git checkout featurex

//  merge the changes of our-team branch into featurex branch
        git merge our-team
//      or git cherry-pick {commit-hash} if you want to merge specific commits

//  push your changes with the changes of our-team branch
        git push

//Note: probably you will have to fix conflicts after merging our-team branch into featurex branch before pushing