how to reset develop branch to master

前端 未结 3 1553
陌清茗
陌清茗 2021-01-30 12:27

I have develop & master branches, my develop branch is messy now and i would like to reset it and make it as a copy of my master

3条回答
  •  深忆病人
    2021-01-30 13:25

    if you just want them to be the same thing

    then

    //from Develop and assuming your master is up to date with origin/master
    git reset --hard master
    

提交回复
热议问题