What is a pull request for?

I'm working as a team on bitbucket and would like to know what a pull request is for. On what occasions should we use this feature.

Author: Dherik, 2017-04-26

2 answers

Pull request is a mechanism where a developer can generate a notification that signals the completion of development of any feature. This allows everyone involved to know that they need to merge the code into the main branch. In addition, changes can be discussed in a forum for possible improvements to the feature in question.

See more at https://www.atlassian.com/git/tutorials/making-a-pull-request

 14
Author: Rodrigo Nogueira, 2017-04-26 17:26:08

When you have multiple people working on top of the same text file base, ideally, each person has a copy of the code to work with. Don't believe it just because I'm saying, Try opening online a file .shared doc and edit it simultaneously with several other people. Then take a bath of coarse salt.

To organize teamwork, a thing called "Version Control"was created a long time ago. To this day they are popular some older systems,such as Microsoft's Source Safe and SVN.

Version control systems that use git in general have as a differential in relation to older systems a very specific functionality, this call pull request. It's basically a way for you to say: I've finished my work, I need to integrate it into the main branch and here's what I did. When using this feature, a log is generated on the server (for example, GitHub , which is very popular) that highlights the code differences between the branch you worked on and the delivery target branch. This makes it easy for the repository administrator to review their work. You can also start discussions on specific sections of the changes. Finally, git itself makes it easy to merge code.

This encourages peer review and orderly teamwork, and in the case of open source projects it also encourages community input.

 21
Author: Garoto de Programa, 2017-08-19 20:59:10