Force my local master to be origin/master

前端 未结 2 465
故里飘歌
故里飘歌 2020-12-13 02:17

I\'ve let master and origin/master get stuck in the sidelines, and am no longer interested in the changes on that branch.

I followed these instructions to get my loc

2条回答
  •  独厮守ぢ
    2020-12-13 02:55

    If git checkout -B master origin/master is not working for you (when you do git pull your local master are still stuck on an older origin/master branch), you can try this:

    git remote prune origin
    
    git pull
    

    It should reset your local master to track the latest origin/master.

提交回复
热议问题