BuildRepositories

Repositories

Create a repository, choose who owns it and who can see it, and manage the people and teams who work in it.

Guide2 min read

Create a repository

Click New repository in the sidebar, or open Create a repository (requires sign-in). You choose three things that are worth getting right first time:

  • Owner: yourself, an organization, or a team. The owner decides who has access by default and who is billed. Put shared work under the organization or team it belongs to.
  • Visibility:
    • Private (the default): only people you add can see it.
    • Team: shared with the owning team or organization.
    • Public: anyone can see it and read its code, on a public repository page.
  • Name and description, so people can find the right repository quickly.

A repository also has a status — Active, Review, Planning or Archived — that tells people at a glance whether it is in use.

People and roles

Each person on a repository has one role:

RoleCan
ViewerRead the code, history and planning. Cannot push or run commands.
ContributorEverything a viewer can, plus push branches and open merge requests.
MaintainerEverything a contributor can, plus manage the repository: settings, people and pipelines.
AdminThe same as a maintainer, and can be allowed to push straight to protected branches. A repository always keeps at least one admin.

The repository's owner, and the owners and admins of the organization that owns it, can always manage it.

In the repository's settings you can:

  • invite collaborators and see pending invitations;
  • review join requests — on a public repository, anyone can ask to become a contributor;
  • give whole teams access, so membership changes follow the team rather than the repository.

Watching

Watch a repository to choose how much you hear about it: all activity, only what you are participating in, or ignoring it. See Inbox, notifications and chat for where those notifications go.

Security state

Every repository is scanned for risky content. Its state is clean, flagged or quarantined; a quarantined repository has execution-sensitive actions blocked until someone reviews the findings. See Security review.