How do I clean up my Github fork so I can make clean pull requests?

后端 未结 3 1236
终归单人心
终归单人心 2020-12-22 14:55

I forked a repository on Github. I\'ve made some minor changes and submitted pull requests to the upstream, but along the way my fork has become so mangled I\'m unable to ge

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 15:56

    On your private repo, add the forkee's repo as a remote. Rebase/reset your branches from the remote's branches. Do a force push to your github repo.

    If you need exact commands, let me know. Also let me know whether you want to try and preserve local commits or if "blowing away" is OK.

提交回复
热议问题