Developers rely on multiple platforms to manage repositories, depending on client and project needs. They might contribute to a community project on GitHub, while working on one client's on premises GitLab instance and another client's project in Mercurial on Bitbucket. Confusion can arise when you switch between platforms. In this post, we have a handy reference guide to explain some potentially confusing terms, especially if you're new to GitLab.
Migrating to GitLab
While most terminology is shared between the platforms, some differences lead to confusion for users. Git-specific terms like commits, push, pull, fetch, merge and so forth are the same. Common features most repository managers have are also the same: such as users, issues, webhooks, milestones, etc.
Pull Requests vs Merge Requests
Some features have different names. For example a “pull request” in GitHub and Bitbucket is called a “merge request” in GitLab.
We figured since you're often making a request to
merge a feature branch into the master branch, we call this a "merge request" and you'll hear us talk about MRs and not PRs.
Read through this page for a full comparison between MRs and PRs.
If you’re brand new to GitLab, we’ve made this handy cheat sheet to help you orient yourself and clear things up.
Teams, Repositories, Organizations?
From teams to repositories to organizations, there’s potential for fresh confusion. In GitHub, repositories contain the Git/SVN repository, and the project assets such as issues, contribution metrics, etc. However users often refer to repos as projects interchangeably.
Creating a new project in GitLab
When you set up a project, you can, among many other options:
- Choose project features.
- Set the project avatar and its visibility level (Private, Internal or Public). You can have as many private projects as you want.
- Build, test, and deploy your app with GitLab CI/CD.
- Collaborate on code with merge requests and Review Apps.
- Integrate with third-party applications
It's important to make this distinction because you import a project in GitLab, regardless of whether that is called a repository elsewhere. In GitLab, the repository is part of a project.
Projects, Organizations, and Groups
This is where it could get confusing. Now Bitbucket groups multiple repositories into Projects, multiple projects into teams, and teams in Bitbucket are analogous to an Organization in GitHub.
In GitLab, we call this a Group.
This allows you to collect several projects together and also invite members (other users) to collaborate. Those members can then configure their own group-level notifications.
Projects can be stored in only one group at once. However, you can share a project with other groups in GitLab Enterprise Edition Starter. And even those settings can be locked at the group level so you can avoid someone sharing a private project to other groups, for example.
The confusion is understandable, especially if, like many developers, you work with a number of clients each on different platforms.