_CreateRepository

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

As an administrator of the Bitbucket space station, you want to keep track of all the files you create in one place and make it easy to share them with your teammates. With Bitbucket, that's easy to do with a repository. You need to create a repository on Bitbucket first, and then add it to your local system. Let's create one!

Some fun facts about repositories
  • You have access to all files in a repository, whether you are working on one file or multiple files.
  • You can view public repositories without a Bitbucket account if you have the URL for that repository.
  • Each repository belongs to a user account or a team.
  • The person who creates the repository is its owner.
  • The repository owner is the only person who can delete the repository.
  • A user or a team can have an unlimited number of public and private repositories.
  • A code project can consist of multiple repositories across multiple accounts but can also be a single repository from a single account.

Step 1. Create the repository

Initially, the repository you create in Bitbucket is going to be empty without any code in it. That's okay because you will start adding some files to it soon. This Bitbucket repository will be the central repository for your files.

Do the following to create your repository:

  1. From Bitbucket, click the Create button at the top of the page and select Create repository from the drop-down menu.

    The system displays the Create a new repository page. Take some time to review the dialog's contents. With the exception of the Repository type, everything you enter on this page you can later change.
  2. Enter BitbucketSpaceStation for the Name field.
    Bitbucket uses this Name in the URL of the repository. For example, if the user the_best has a repository called awesome_repo, the URL for that repository would be https://bitbucket.org/the_best/awesome_repo.
  3. For the Description of the repository, enter The repository for my space station.
  4. For Access level, leave the This is a private repository box checked.
    A private repository is only visible to you and those you give access to. If this box is unchecked, everyone can see your repository.
  5. Pick Git or Mercurial for the Repository type, depending on the DVCS tool you have installed. If you are using Sourcetree, it doesn't matter which type you pick. Keep in mind though that you can't change the repository type after you click Create repository.
  6. For Project management, check both the Issue tracking and Wiki checkbox.
  7. Set the Language field to HTML/CSS.
  8. Click Create repository.
    Bitbucket creates your repository and displays its Overview page.

Step 2. Explore your new repository

Take some time to explore the repository you have just created. You should be on the repository's Overview page:

Click items on the bar to see what is behind each one. To view the shortcuts available to navigate these items, press the ? key on your keyboard.

When you click the Commits option on the menu bar, you find that you have no commits because you have not created any content for your repository. Your repository is private and you have not invited anyone to the repository, so the only person who can create or edit the repository's content right now is you, the repository owner.

Last modified on Jun 23, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.