RESTfully creating a repository in

RESTfully creating a repository in

Submitted by Jitesh Doshi on Sun, 06/02/2013 - 12:01
Bitbucket Atlassian logo

Creating a  Git repository is simple, using the excellent service. It can be a chore to go to the bitbucket website and manually creating new repositories every time, though. Since it is bitbucket, and Atlassian, they have exposed a very nice RESTful API on top their service offering. Below is an example of how to create a new repository from 'curl' command-line ...

 curl --user login:pass --data name=REPO_NAME 

The above creates a 'public' repository. If you want a 'private' repository, then just add --data is_private='true'. Like this ...

 curl --user login:pass --data name=REPO_NAME --data is_private=true 



Jitesh Doshi

Profile picture for user Jitesh Doshi
Managing Partner & CTO
  • A seasoned technology entrepreneur and enthusiast
  • A regular speaker at industry conferences and universities
  • Host and organizer of technology user groups
  • Active in management of non-profit organizations serving the local community
  • Leader and contributor for multiple open-source projects
  • Expert in cloud, application integration, web and mobile technologies
  • Author of open-source projects, including on - Popular Tags and PRLP.
  • Developed several highly successful software platforms and frameworks for clients