How to create a repo from remote
There are few steps we should take to create a new repo and make progress:
step 1. Use github API to create a new repo:
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"PROJECT_NAME", "description":"THIS IS A PROJECT."}'
step 2. Git init to initialize the local project files.
git init
git remote add origin THE_REPO_URI
THE_REPO_URIcan be one of following two forms:
ssh form: git@github.com:USER/projectname.git
https form: https://github.com/USER/projectname.git
step 3. First commit:
git add .
git commit -a 'first commit.'
step 4. First push.
git push --set-upstream origin master
Done.
Be productive and make project progress!