Git merge errors

前端 未结 5 2080
刺人心
刺人心 2020-12-12 08:38

I have a git branch called 9-sign-in-out with perfectly working code, and I want to turn it into the master. I\'m currently on the master branch.



        
5条回答
  •  不知归路
    2020-12-12 08:53

    Change branch, discarding all local modifications

    git checkout -f 9-sign-in-out 
    

    Rename the current branch to master, discarding current master

    git branch -M master 
    

提交回复
热议问题