How to create a new Repository in Bitbucket and code?


I am new to Bitbucket.

My Admin has created a new Project PRS.  It's path is like http://server:port/projects/PRS. He said I can now be able to add code.

I need to create a Repository / folders like QA & PROD and add code in it. Could you please guide me in simple steps either through Git CMD or Git UI?

Thanks in advance.




1 answer

1 accepted

0 votes

Hi David!

You can find step by step instructions on how to create a repository using the Bitbucket UI at Creating repositories. If you prefer to do it through the Git CMD, you can read Setting up a repository.

Once you've done that, you'll start coding. In this other article you'll learn how to get started with Git and Bitbucket and how to push your code to Bitbucket, visit Getting started with Git and Bitbucket Server.

Also, if you'd like to use a Git client, you can install Sourcetree which is free and available for Mac and Windows.

I hope this helps, David. Let me know if you have any questions!



Hi Ana!

Thank you very much! I will follow the steps.

I have a question : I dont see the option "Create Repository" from UI.  Can I be able to create a repository with command  line? (  assuming I dont have Project Admin Rights)

Thank you,


Hi David, when you click Repositories in the navigation bar, a menu will be displayed and you'll see your recent repos and the option to create a new one. If you can not see the Repositories button, you'll need to check with your admin if you have the right permissions. If you still don't see it, you can send a screenshot of what you see in your Bitbucket UI (remember to remove any sensitive information ;) )

If you prefer to do it via command line, you can use:

git init <directory>

That will create an empty Git repository in the specified directory. You can find more info at Setting up a repository.

Were you able to create a repository now?


Hi Ana, Thanks for the reply.

I have followed up with my Admin to provide "Project Admin" access. Now, I am able to see the option and able to create the Repository.

Before "Project Admin" access is given to me, I have tried using Command line but unable to doit.



Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

649 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot