Skip to content

Instantly share code, notes, and snippets.

@yuitest
Created November 29, 2013 16:41
Show Gist options
  • Save yuitest/7708482 to your computer and use it in GitHub Desktop.
Save yuitest/7708482 to your computer and use it in GitHub Desktop.
GitHub に
#!/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 ''
@yuitest
Copy link
Author

yuitest commented Nov 29, 2013

GitHub の Gist に、 Bitbucket のリポジトリ作成を載せる所業。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment