Create new repo on Bitbucket from Git Bash terminal?

前端 未结 7 2232
半阙折子戏
半阙折子戏 2020-12-22 19:53

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条回答
  •  -上瘾入骨i
    2020-12-22 20:23

    https://confluence.atlassian.com/bitbucket/repository-resource-423626331.html

    $ curl -X POST -v -u username:password -H "Content-Type: application/json" \
      https://api.bitbucket.org/2.0/repositories/teamsinspace/new-repository4 \
      -d '{"scm": "git", "is_private": "true", "fork_policy": "no_public_forks" }'
    

提交回复
热议问题