Pull new updates from original GitHub repository into forked GitHub repository

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

    If you're using the GitHub desktop application, there is a synchronise button on the top right corner. Click on it then Update from <original repo> near top left.

    If there are no changes to be synchronised, this will be inactive.

    Here are some screenshots to make this easy.

    0 讨论(0)
  • 2020-11-22 08:06

    In addition to VonC's answer, you could tweak it to your liking even further.

    After fetching from the remote branch, you would still have to merge the commits. I would replace

    $ git fetch upstream
    

    with

    $ git pull upstream master
    

    since git pull is essentially git fetch + git merge.

    0 讨论(0)
提交回复
热议问题