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
I made a quick shell script that takes care of creating a local git in current working directory, doing the "Initial commit" and then create the bitbucket repo (using Mareks curl method), and then finally doing all that is needed to push the initial commit to bitbucket.
(note this is for private repos only but that is easily changed as described by Patrick)
Use it like this:
fillbucket
Code is on http://bitbucket.org/hannesr/fillbucket