1.注册Github账号;
2.创建repository;https://github.com/new
3.安装Git shell;http://windows.github.com/
4.Git shell 创建密钥
ssh-keygen -C 'your@email.address' -t rsa连续三个回车之后会在windows当前用户目录下生成.ssh文件夹,和linux一样。
5.Setting-->Personal Setting-->SSH and GPG Key
6. 在Git Shell下输入命令测试刚才的公钥是否认证正确
ssh -T git@github.com7. clone刚才新建的repository 到本地,输入命令:
git clone https://github.com/xxx/test.git
8.将想上传的代码目录拷贝到此文件夹下
9.git命令上传