git-sourceTree使用
sourceTree提交项目到GitHub
1、注册GitHub账号
2、新建一个代码库
3、安装sourceTree:
到:https://www.sourcetreeapp.com/下载软件
安装及跳过登录参考:
http://blog.csdn.net/leishao8852/article/details/52432733
https://www.cnblogs.com/leohe/p/6726120.html
4、生成ssh key :
生成时:ssh-****** -t rsa -C "your email"
一路enter即可
5、使用git bash 克隆到本地;有ssh和HTTPS
6、使用sourceTree带有的pageant工具
loader private key
打开
其中有id_rsa和id_rsa.pub文件,将id_rsa.pub文件中的内容添加到GitHub设置中
选中id_sra生成:
保存:
pageant中添加id_ras.ppk
7、sourceTree中完成clone