Why does GitHub call foreign submissions, a “Pull Request”?

前端 未结 5 1751
我寻月下人不归
我寻月下人不归 2020-12-23 19:10

I\'m curious why GitHub calls submissions to merge, \"Pull requests.\"

From my understanding, git pull will pull all changes, from a remote repository,

5条回答
  •  醉梦人生
    2020-12-23 19:44

    A pull request is when a contributor that does not have push access to a repository wants to submit code for inclusion in the project. For instance, if you have a project on github and you are the only person with commit rights and I want to include code in your project what do I do?

    I'll fork your github repository and create a new branch for my work. Once I'm happy with the current implementation I'll send you a request to git pull my branch into your repository (since I don't have rights to push directly). When you do git pull you have the option of which branch to pull and where you want to pull to. Perhaps you don't want to pull directly into your master branch but into some other branch to examine the code.

    The git book has a nice section on different work flows like this.

提交回复
热议问题