码迷,mamicode.com
首页 > 其他好文 > 详细

Git clone 初始设置

时间:2018-12-03 01:14:07      阅读:326      评论:0      收藏:0      [点我收藏+]

标签:内容   bash   id_rsa   .com   gen   use   ash   目录   key   

1、删除.ssh文件夹

2、在Git的bin目录下打开bash.exe,输入命令ssh-keygen -t rsa -C "username"

3、复制C:\Users\WASHINSOFT.ssh\id_rsa.pub的全部内容

4、 打开https://github.com/,登陆账户,进入设置(Settings)找到SSH and GPG keys,点击New SSH Key,在key中粘贴id_rsa.pub的全部内容。

5、在bash.exe中输入ssh -T git@github.com

Git clone 初始设置

标签:内容   bash   id_rsa   .com   gen   use   ash   目录   key   

原文地址:http://blog.51cto.com/12183631/2324966

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!