Created
November 29, 2013 16:41
-
-
Save yuitest/7708482 to your computer and use it in GitHub Desktop.
GitHub に
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
USERNAME='' | |
PASSWORD='' | |
URL='https://api.bitbucket.org/2.0/repositories/' | |
curl "$URL$USERNAME/$1" \ | |
-d '{"scm": "git", "name": "'"$1"'", "is_private": true}' \ | |
-H 'Content-Type: application/json' \ | |
-X POST -u "$USERNAME":"$PASSWORD" | |
echo '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GitHub の Gist に、 Bitbucket のリポジトリ作成を載せる所業。