What does the pull request on git mean ?, Gitpull

Source: Internet
Author: User

What does the pull request on git mean ?, Gitpull

 

1. git has common pull request Functions

 

2. Meaning of pull request

Explanation 1:

There is A warehouse called Repo. If you want to contribute code in, you need to Fork the Repo first, so you have a Repo A2 under your Github account. Then you work in this A2, such as Commit and push. Then you want the original repository Repo A to merge your work. You can initiate A Pull Request on Github, which means to Request the owner of Repo A to merge the branches from your A2. If it is approved and formally merged, you will contribute to project. Explanation 2: I try to explain pull reqeust in an analogy. Think about the scenario in which our secondary school exams and instructors change their exams. The exam you made is like a warehouse. There must be many errors in your exam, which is equivalent to bugs in the program. The teacher takes your exam, which is equivalent to fork first. Make some modification comments on your volume, which is equivalent to git commit. Finally, I will give you the modified exam, which is equivalent to sending a pull request. You will get the exam and correct the mistake again, which is equivalent to merge.

When you want to correct errors in others' warehouses, you need to follow the process:
So far, the entire pull request process has ended. Address: http://www.zhihu.com/question/21682976

Related Article

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.