What is the Fork & Pull Model in GitHub?

白昼怎懂夜的黑 提交于 2019-12-04 16:43:01

问题


I have heard this term used for managing a code base in GitHub. What does it mean?


回答1:


As noted within the GitHub docs:

The Fork & Pull Model lets anyone fork an existing repository and push changes to their personal fork without requiring access be granted to the source repository. The changes must then be pulled into the source repository by the project maintainer. This model reduces the amount of friction for new contributors and is popular with open source projects because it allows people to work independently without upfront coordination. [...] Pull requests are especially useful in the Fork & Pull Model because they provide a way to notify project maintainers about changes in your fork.




回答2:


GitHub consist of many repositories. You can fork any a repository and start developing your changes on that. When you are completed with your changes you can send pull request to author of repository from where you forked to merge your changes to main repository. If repository author find your changes significant, the pull request can be accepted and your changes are merged.



来源:https://stackoverflow.com/questions/11582995/what-is-the-fork-pull-model-in-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!