after I fork a github project, how can I stay current with the original project?

前端 未结 2 651
别跟我提以往
别跟我提以往 2021-01-31 09:51

On github, after I fork a project, modify it, then submit my pull request, it seems that I have to delete and re-fork in order to stay current with any changes made after my pul

相关标签:
2条回答
  • 2021-01-31 10:39

    You should add the original project as a remote to your working copy. Then you can pull changes from the original repository and push them to your forked repository. The commands for this look something like:

    git remote add upstream <original repo url>
    git pull upstream master
    git push origin
    
    0 讨论(0)
  • 2021-01-31 10:40

    What you can do is create a pull request in your forked repo by comparing to the original repository and then merge it in your repository.

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