Pull new updates from original GitHub repository into forked GitHub repository

后端 未结 8 1028
梦谈多话
梦谈多话 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:52

    This video shows how to update a fork directly from GitHub

    Steps:

    1. Open your fork on GitHub.
    2. Click on Pull Requests.
    3. Click on New Pull Request. By default, GitHub will compare the original with your fork, and there shouldn’t be anything to compare if you didn’t make any changes.
    4. Click on switching the base. Now GitHub will compare your fork with the original, and you should see all the latest changes.
    5. Click on Create a pull request for this comparison and assign a predictable name to your pull request (e.g., Update from original).
    6. Click on Create pull request.
    7. Scroll down and click Merge pull request and finally Confirm merge. If your fork didn’t have any changes, you will be able to merge it automatically.

提交回复
热议问题