What does pull request on git mean?

Source: Internet
Author: User

1, Git has a common pull request function

2. The meaning of Pull request

explanation One:

There is a warehouse, called Repo A. If you want to contribute to the code, first fork this repo, so you have a GitHub account under a repo A2. then you work under this A2, Commit,push and so on. Then you want the original warehouse repo A to merge your work, you can launch a pull request on GitHub, which means request repo A's owner to merge branches from your A2. if it is approved and formally merged, then you contribute to project A. explanation Two:    I try to explain the pull reqeust in an analogous way. Think about our high school exams, the teacher changed the scene of the roll. Your test paper is like a warehouse, your test paper will certainly have a lot of mistakes, the equivalent of a bug in the program. The teacher takes your test paper, which is equivalent to fork first. Make some changes to your paper, which is equivalent to git commit. Finally, the modified paper to you, the equivalent of a pull request, you get the test paper to correct the error, the equivalent of merge.

when you want to correct a mistake in someone else's warehouse, take a process:
    1. First fork The warehouse of others, equivalent to a copy, believe me, no one will directly let you repair the original warehouse
    2. Clone to local branch, do some bug fix
    3. Initiate pull request to the original repository and let him see the bug you modified
    4. The original warehouse review this bug, if it is correct, it will merge into his own project
at this point, the entire pull request process is over. Related address: http://www.zhihu.com/question/21682976

What does a pull request on a

git mean?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.