Create a BitBucket Private Repository via Curl

curl POST -v -u <bitbucket-user>:<bitbucket-password>  -H "Content-Type: application/json" \
    "https://api.bitbucket.org/2.0/repositories/<username-or-organization>/<repo>" \
    -d '{"scm": "git", "is_private": "true", "fork_policy": "no_public_forks" }'Code language: HTML, XML (xml)

Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.