Git - Creating Github Repo from CLI
curl -u 'username' https://api.github.com/user/repos -d '{"name":"repo-name"}'
git remote add origin git@github.com:username/repo-name.git
git add .
git commit -m "first commit"
git push origin master
Written by Noval Agung Prayogo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Github
Authors
jjperezaguinaga
90.17K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#