echo "# codechallenge" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xxx/codechallenge.git
git push -u origin master
git remote add origin https://github.com/xxx/codechallenge.git
git push -u origin master
原文:https://www.cnblogs.com/kisstherain/p/10960074.html