Created
September 29, 2019 01:58
-
-
Save CliffCrerar/9cc82139dffdcd0d0ba803ea7a1d0a6f to your computer and use it in GitHub Desktop.
Create gh repo from the bash command line
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
| #Usage: gcreate userName repoName "Description if any" | |
| gcreate () { | |
| curl -u $1 https://api.github.com/user/repos -d "{\"name\": \"$2\", \"description\": \"$3\"}" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment