Last active
November 23, 2017 14:12
-
-
Save shawn111/e98c0d2f3a3d03e7553ea52f0e42ada2 to your computer and use it in GitHub Desktop.
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
SERVER="http://xxx:3000" | |
REPO="foo" | |
ORG="foo" | |
#API="user/repos" | |
API="org/$ORG/repos" | |
TOKEN="b2a36575cffaf2b291863f023e2027c26e87b3c9" | |
curl -H 'content-type: application/json' -H \'Authorization: token $TOKEN\' -d \'{"name":"$REPO"}\' -X POST "$SERVER/api/v1/$API" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment