How to move the current working branch to master branch in git

后端 未结 10 1006
挽巷
挽巷 2020-12-13 00:13

I have currently one of the project it contain more branches. master branch not yet merger long time. So i want switched to master with latest code.

Can you please g

10条回答
  •  -上瘾入骨i
    2020-12-13 00:59

    Do you want to merge a 'develop' branch into master?

    git checkout master
    git merge develop
    

    Or do you want to merge the changes from master into your development branch?

    git checkout develop
    git merge master
    

提交回复
热议问题