把自己本地东西上传到GitHup上。

本文内容来自于http://blog.csdn.net/yuanzichao/article/details/44922593

1、安装msysgitTortoiseGit ;

2、TortoiseGit 设置:

(1)、确保安装成功:githup上传代码

(2)、设置用户名和邮箱:

githup上传代码

3、登陆github并进入设置页面:

githup上传代码

4、添加 SSH Key:

githup上传代码

5、通过TortoiseGit生成SSH key:

githup上传代码

githup上传代码

githup上传代码

githup上传代码

点击 Save private key 保存密钥(暂时不要关闭Puttygen下面还要用到),

githup上传代码

6、复制Puttygen 软件生成的Public Key 至 GitHub的添加SSH Key窗口:

githup上传代码

githup上传代码

githup上传代码

7、在GitHub上新建一个空仓库:

githup上传代码

githup上传代码

8、获取URL:

githup上传代码

9、使用TortoiseGit工具 Clone 刚才建立的仓库:

githup上传代码

githup上传代码

githup上传代码

githup上传代码

10、然后添加文件并上传:

githup上传代码

githup上传代码

githup上传代码

githup上传代码

githup上传代码

githup上传代码

这里的orgin是要设置的,点击Manage进入之后输入URL地址就是githup上传代码

 

githup上传代码

githup上传代码

githup上传代码

githup上传代码

 

相关文章: