所以,github和本地创库是通过ssh传送,所以要将公钥拷贝到远程创库上(比如我ssh 远程服务器时,先将本地的公钥,拷贝到远程服务器的某个文件上(http://www.cnblogs.com/liuzhipenglove/p/7070391.html)
gitbash创建公钥指南:http://www.cnblogs.com/liuzhipenglove/p/7070211.html
create a new repository on the command line (如果不添加公钥,会要求你输入github的用户和密码)
echo "# learngit3" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/liuzhipeng17/learngit3.git
git push -u origin master
push an existing repository from the command line
git remote add origin https://github.com/liuzhipeng17/learngit3.git
git push -u origin master