How to maintain a Github fork of a popular project

后端 未结 1 888
故里飘歌
故里飘歌 2021-02-04 02:30

I forked a popular github project to make certain minor adjustments for my needs. However I want to keep my fork up to date with the master repo. What I did initially was fork v

相关标签:
1条回答
  • 2021-02-04 02:59

    You can configure to remote repositories to use in git. In the project cloned from your fork, type the following comand: git remote add name url where name is a alias to a url that represents the master repo.

    With that, to bring the new updates from the master repo, just type: git pull name master. To send the changes to your fork repo: git push origin master.

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