Created
May 27, 2015 21:53
-
-
Save srhopkins/5f6fdc975c047417dfb4 to your computer and use it in GitHub Desktop.
Create git repo with github api
This file contains hidden or 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
#!/usr/bin/env bash | |
USER=${1} | |
REPO=${2} | |
curl -u "${USER}" https://api.github.com/user/repos -d '{"name":"'${REPO}'"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment