Skip to content

Instantly share code, notes, and snippets.

@thelazyindian
Created January 5, 2017 18:24
Show Gist options
  • Save thelazyindian/2ac34240c79307d5a426466c99a91ae7 to your computer and use it in GitHub Desktop.
Save thelazyindian/2ac34240c79307d5a426466c99a91ae7 to your computer and use it in GitHub Desktop.
#!/bin/sh
repo_name=$1
test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
curl -u 'your_github_username' https://api.github.com/user/repos -d "{\"name\":\"$repo_name\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment