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

后端 未结 10 1007
挽巷
挽巷 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条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 00:46

    If you want to merge the working branch into the master, you can also use rebase which is a bit cleaner.

    git checkout master
    git rebase 
    

提交回复
热议问题