Skip to the workspace
Pebellslearn by building
Version Control and Hosting  ›  Capstone Project

Pull Requests on GitHub, GitLab and Bitbucket

GitLab 12 minHosting platforms turn a pushed branch into a pull or merge request where automated checks and reviewers approve the change before it is merged into main.

devops / Pull Requests on GitHub, GitLab and Bitbucket

Explore each scene at your own pace.

01 · The rule

The rule

Pull Requests on GitHub, GitLab and Bitbucket

A teammate pushes a one-line change straight to main on a Friday afternoon, and notes-api goes down. Nobody reviewed it and no tests ran. Every hosting platform offers the same cure: changes arrive as proposals that are checked before they are merged.

The rule

Never push straight to main; propose a branch and let checks and people review it.

A pull request (GitHub and Bitbucket) or merge request (GitLab) is the same idea under two names: "please merge my branch into main". It shows the diff, collects review comments, and runs automated checks such as tests and linting. Branch protection rules can then require passing checks and at least one approval before the merge button works, and block direct pushes to main.

The three big hosts differ mostly in what surrounds the repo:

Platform Known for
GitHub The largest open-source community; GitHub Actions for automation
GitLab CI/CD built into the product; can be self-hosted on your own servers
Bitbucket Part of Atlassian's tools, with close Jira integration; Bitbucket Pipelines for CI

Git itself is identical on all three, so your commands never change. Only the web workflow and the pipeline configuration file differ.

A small, focused pull request gets a better review than a huge one. A useful description says what changed, why, and how it was tested.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.