- A pull request is an event in Git where a contributor(developer) asks a maintainer(Project Manager, Senior Developer/Code Reviewer) of a Git repository to review code they want to merge into a project.
- Developer made changes on feature-1 for a project, after development , he create pull request to merge the commit on master,Dev branch(Project Main branch contains stable code)
- Then contribution able to see the pull request in the github repository pull request section/tab
- He will review and merge the pull request
Example :
Developer -1 :
–> Changes Made on Feature-1 with commit-1,
–> once the changes are verified by testing/checking it,
–> we merge the feature-1 branch commit-1 on master
–> because we need to add the feature on main project (which is master/dev)
–> If it’s our own project we can directly merge
–> But in industry, Project repository owners , Administrators are Team Lead or Senior Developers
–> We need to submit our code to them, they will verify and
–> Merge the code to the respected branch
1. Go to repository , Select Pull request tab next click on New pull request green color button
2. Comparing the changes : add the branches,, if you have any commits in any other branches that are shown here , click on view pull request
3. If your administrator add description , accept the Merge pull request to main branch or you can reject it by drop down the Merge pull request, there you can see that option
4. Merged the pull request
6. We can verify that on coming back the the code section
7. We can find more information by clicking that commits below the code button