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:
- First fork The warehouse of others, equivalent to a copy, believe me, no one will directly let you repair the original warehouse
- Clone to local branch, do some bug fix
- Initiate pull request to the original repository and let him see the bug you modified
- 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?