Tutorial: Learn about Bitbucket pull requests

Objective

Start a repository with someone else and get some feedback about your change.

Mission Brief

So far, you've been the only person working in a repository. But what if you wanted to collaborate with your colleagues on a repository? You can do that, whether you're in the same room or across the universe.

Time

15 minutes

Audience

You have some experience using Bitbucket Cloud. If not, try out one of our beginner tutorials.

Prerequisites

About branches and pull requests

When you work on a workspace with multiple Bitbucket users, you'll want to work on your own set of code separately from the main codebase. Branches allow you to do just that. A branch represents an independent line of development for your repository. Think of it as a brand-new working directory, staging area, and project history. After you create a branch, you work on and commit code to that branch, pull updates from Bitbucket to keep your branch up-to-date, and then push all your work to Bitbucket.

Once you've got code changes on a branch in Bitbucket, you can create a pull request, which is where code review takes place. Your fellow crew members will comment on your code with feedback and questions and eventually (hopefully) approve the pull request. When you have enough approvals, merge the pull request to merge your branch into the main code.

Start the mission!

Additional Help