Create new repo on Bitbucket from Git Bash terminal?

前端 未结 7 1505
别那么骄傲
别那么骄傲 2020-12-22 19:56

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         


        
7条回答
  •  余生分开走
    2020-12-22 20:18

    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

提交回复
热议问题