标签:
Quick setup — if you’ve done this kind of thing before
SSH :git@github.com:Simshang/learngit.git
echo "# learngit" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/Simshang/learngit.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/Simshang/learngit.git
git push -u origin master
标签:
原文地址:http://www.cnblogs.com/shangyan/p/4883598.html