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' workOn 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.