How can I choose to overwrite remote repository with local commits?

后端 未结 4 1817
闹比i
闹比i 2020-12-25 10:42

Basically, due to events beyond my control, my remote repo was moved - I did a lot of work on my local copy in the meantime and now I really just want to overwrite everythin

4条回答
  •  独厮守ぢ
    2020-12-25 11:13

    Been having the same problem. This command worked for me.

    git push --set-upstream origin master --force
    

提交回复
热议问题