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

前端 未结 2 652
别跟我提以往
别跟我提以往 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 
    git pull upstream master
    git push origin
    

提交回复
热议问题