Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Shell script for making github repository and pushing source codes
test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
curl -u '[username]:[password]' -d "{\"name\":\"$repo_name\"}"
git init
git add .
git commit -m "initial commit"
git remote add origin "[username]/$repo_name.git"
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.