Skip to content

Instantly share code, notes, and snippets.

@CliffCrerar
Created September 29, 2019 01:58
Show Gist options
  • Save CliffCrerar/9cc82139dffdcd0d0ba803ea7a1d0a6f to your computer and use it in GitHub Desktop.
Save CliffCrerar/9cc82139dffdcd0d0ba803ea7a1d0a6f to your computer and use it in GitHub Desktop.
Create gh repo from the bash command line
#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