Pull new updates from original GitHub repository into forked GitHub repository

后端 未结 8 977
梦谈多话
梦谈多话 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 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.

提交回复
热议问题