Difference between revisions of "Git pull request"
Karl Jones (Talk | contribs) |
Karl Jones (Talk | contribs) |
||
Line 5: | Line 5: | ||
A pull request is a mechanism for a developer to notify team members that they have completed a feature. Once their feature branch is ready, the developer files a pull request. This lets everybody involved know that they need to review the code and merge it into the master branch. | A pull request is a mechanism for a developer to notify team members that they have completed a feature. Once their feature branch is ready, the developer files a pull request. This lets everybody involved know that they need to review the code and merge it into the master branch. | ||
− | A pull request is more than just a | + | A pull request is more than just a notification. it is a dedicated forum for discussing the proposed feature. If there are any problems with the changes, teammates can post feedback in the pull request and even tweak the feature by pushing follow-up commits. All of this activity is tracked directly inside of the pull request. |
== Structure == | == Structure == | ||
Line 31: | Line 31: | ||
* [[Git (software)]] | * [[Git (software)]] | ||
+ | * [[GitHub]] | ||
+ | * [[Revision control]] | ||
== External links == | == External links == | ||
* [https://www.atlassian.com/git/tutorials/making-a-pull-request Making a Pull Request] @ atlassian.com | * [https://www.atlassian.com/git/tutorials/making-a-pull-request Making a Pull Request] @ atlassian.com | ||
+ | * [https://help.github.com/articles/about-pull-requests/ About Pull Requests] @ github.com | ||
+ | * [http://stackoverflow.com/questions/14680711/how-to-do-a-github-pull-request How to do a GitHub pull request] @ Stack Overflow | ||
[[Category:Computing]] | [[Category:Computing]] | ||
[[Category:Git (software)]] | [[Category:Git (software)]] |
Latest revision as of 13:07, 12 September 2016
In the Git (software) revision control system, a pull request is an interface for discussing proposed changes before integrating them into the official project.
Description
A pull request is a mechanism for a developer to notify team members that they have completed a feature. Once their feature branch is ready, the developer files a pull request. This lets everybody involved know that they need to review the code and merge it into the master branch.
A pull request is more than just a notification. it is a dedicated forum for discussing the proposed feature. If there are any problems with the changes, teammates can post feedback in the pull request and even tweak the feature by pushing follow-up commits. All of this activity is tracked directly inside of the pull request.
Structure
When you file a pull request, all you’re doing is requesting that another developer (e.g., the project maintainer) pulls a branch from your repository into their repository.
This means that you need to provide four pieces of information to file a pull request:
- the source repository
- the source branch
- the destination repository
- the destination branch
Typical usage
The typical process is as follows:
- A developer creates the feature in a dedicated branch in their local repo.
- The developer pushes the branch to a shared repository.
- The developer files a pull request.
- The rest of the team reviews the code, discusses it, and alters it.
- The project maintainer merges the feature into the official repository and closes the pull request.
See also
External links
- Making a Pull Request @ atlassian.com
- About Pull Requests @ github.com
- How to do a GitHub pull request @ Stack Overflow