_CreateRepository
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!
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:
- 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. - Enter
BitbucketSpaceStation
for the Name field.
Bitbucket uses this Name in the URL of the repository. For example, if the userthe_best
has a repository calledawesome_repo
, the URL for that repository would behttps://bitbucket.org/the_best/awesome_repo
. - For the Description of the repository, enter
The repository for my space station
. - 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. - 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.
- For Project management, check both the Issue tracking and Wiki checkbox.
- Set the Language field to HTML/CSS.
- 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.