Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create repository on BitBucket remotely?

Tags:

mercurial

I want to create a repository from my local machine using hg commands on Bitbucket instead of creating a repo manually on Bitbucket. Is it possible ?

Thanks in advance for your response.

like image 400
Nitesh Avatar asked Jun 27 '10 22:06

Nitesh


2 Answers

I did the following using the REST API through curl command:

$>curl -k -X POST --user user:pass \
"https://api.bitbucket.org/1.0/repositories" -d "name=project_name"
like image 53
Tate Avatar answered Sep 21 '22 15:09

Tate


I believe the only way to make a BitBucket repo is on BitBucket, either through their web interface, or their API.

This question has details of how to create an empty repo on BitBucket then push local content to it.

like image 24
Ned Batchelder Avatar answered Sep 23 '22 15:09

Ned Batchelder