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

后端 未结 10 1017
挽巷
挽巷 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 01:01

    If I understand your English correctly, you don't want to merge your changes back into master, but just reset master to point to the latest commit in your currently checked out branch? To do this, use:

    git branch -f master
    

提交回复
热议问题