How do I update a GitHub forked repository?

前端 未结 23 2827
借酒劲吻你
借酒劲吻你 2020-11-21 11:07

I recently forked a project and applied several fixes. I then created a pull request which was then accepted.

A few days later another change was made by another con

23条回答
  •  [愿得一人]
    2020-11-21 11:45

    If you use GitHub Desktop, you can do it easily in just 6 steps (actually only 5).

    Once you open Github Desktop and choose your repository,

    1. Go to History tab
    2. Click on the search bar. It will show you all the available branches (including upstream branches from parent repository)
    3. Select the respective upstream branch (it will be upstream/master to sync master branch)
    4. (OPTIONAL) It will show you all the commits in the upstream branch. You can click on any commit to see the changes.
    5. Click Merge in master / branch-name, based on your active branch.
    6. Wait for GitHub Desktop to do the magic.

    Checkout the GIF below as an example:

提交回复
热议问题