Pull new updates from original GitHub repository into forked GitHub repository

后端 未结 8 831
梦谈多话
梦谈多话 2020-11-22 07:08

I forked someone\'s repository on GitHub and would like to update my version with commits and updates made in the original repository. These were made after I forked my copy

8条回答
  •  醉酒成梦
    2020-11-22 07:53

    If you want to do it without cli, you can do it fully on Github website.

    1. Go to your fork repository.
    2. Click on New pull request.
    3. Make sure to set your fork as the base repository, and the original (upstream) repository as head repository. Usually you only want to sync the master branch.
    4. Create new pull request.
    5. Select the arrow to the right of the merging button, and make sure to choose rebase instead of merge. Then click the button. This way, it will not produce unnecessary merge commit.
    6. Done.

提交回复
热议问题