Create new repo on Bitbucket from Git Bash terminal?

前端 未结 7 1494
别那么骄傲
别那么骄傲 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:40

    You can use the Bitbucket REST API and cURL. For example:

    curl --user login:pass https://api.bitbucket.org/1.0/repositories/ \
    --data name=REPO_NAME
    

    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

提交回复
热议问题