Git 使用ssh密钥
2016-09-24 10:54
225 查看
由于蛮久没有接触到Git和Github了,许多东西都有点忘了= =。
趁着这个时间,重新学习下。
配置本机的git
使用命令验证下:
![](https://images2015.cnblogs.com/blog/885822/201609/885822-20160924105901699-719149962.png)
生成密钥
![](https://images2015.cnblogs.com/blog/885822/201609/885822-20160924104928231-1914544102.png)
在Github上添加密钥
Settings -> SSH Keys
将刚才的密钥粘贴上去即可。
![](https://images2015.cnblogs.com/blog/885822/201609/885822-20160924105241090-836261657.png)
使用git clone下来了一个自己fork来的一个分支。
![](https://images2015.cnblogs.com/blog/885822/201609/885822-20160924105832121-311606470.png)
2016/9/24