Skip to content

Instantly share code, notes, and snippets.

@simbalinux
Created July 13, 2018 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simbalinux/f4e53e2ae8783133dca4a55bd38fbb44 to your computer and use it in GitHub Desktop.
Save simbalinux/f4e53e2ae8783133dca4a55bd38fbb44 to your computer and use it in GitHub Desktop.
create_repo
#!/usr/bin/env bash
repo_name=$1
test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
curl -u 'username_github' 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