Skip to the workspace
Pebellslearn by building
General Development Skills  ›  Lesson

GitHub, GitLab and Bitbucket — Sharing the Repository

GitHub, GitLab, BitBucket 12 minHosting platforms keep a shared remote copy of a Git repository and add pull requests, reviews and automated checks around it.

aspnet core / GitHub, GitLab and Bitbucket — Sharing the Repository

Explore each scene at your own pace.

01 · The rule

The rule

GitHub, GitLab and Bitbucket — Sharing the Repository

Git on your laptop keeps your history. But ReadingRoom has three developers and a server that deploys it. Everyone needs one shared copy to push to, and a place to look at each other's changes before they land. That is what a hosting platform gives you.

The rule

Push branches, not main; merge through a reviewed, tested pull request.

GitHub, GitLab and Bitbucket all host Git repositories. The copy they hold is a remote, conventionally named origin.

git clone https://github.com/example/readingroom.git   # copy the remote down
git push -u origin add-loans                           # send your branch up
git pull                                               # fetch and merge others' work

On top of plain Git, each platform adds the same core ideas, with slightly different names:

Idea GitHub GitLab Bitbucket
Propose a merge Pull request Merge request Pull request
Automated checks GitHub Actions GitLab CI/CD Bitbucket Pipelines
Track work Issues Issues Jira integration

A pull request says: "here is my branch; please merge it into main." Teammates comment on the diff, and CI builds the code and runs dotnet test on it automatically. Branch protection can require passing checks and an approval before anything reaches main.

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