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

后端 未结 4 1818
闹比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:11

    I'm not an expert in github ecosystem, but why can't you just reset your remote repository url?

    git remote set-url origin /path/to/your/new/remote/repository/url
    

    You might also need to configure your up-stream branch by looking in here.

    for more on git remote..., please take a look here.

提交回复
热议问题