Is it possible to create a new repository in Bitbucket by using command line Git? I have tried the following:
git clone --bare https://username@bitbucket.org/username/new_project.git
I get this message:
Cloning into bare repository ‘new_project.git’…
fatal:https://username@bitbucket.org/username/new_project.git/info/refsnot found: did you run git update-server-info on the server?
It would be nice to do this without going to the web app.
You can use the Bitbucket REST API and cURL. For example:
to create new repository named
REPO_NAME.See Use the Bitbucket REST APIs for more information.
UPDATE
For Bitbucket V2 specifically, see POST a new repo