git在windows上配置ssh公钥
git在windows上配置ssh公钥
一 .设置git的user name和email:
$ git config –global user.name “lxyz”
$ git config –global user.email “1129103472@qq.com”
二 生成密钥
ssh-keygen -t rsa -C “1129103472@qq.com”
按3个回车,密码为空。(不要输密码)
然后到.ssh下面将id_rsa.pub里的内容复制出来粘贴到github个人中心的账户设置的ssh key里面
git for windows下载地址:
http://code.google.com/p/msysgit/downloads/list
转自:http://www.2cto.com/os/201305/211731.html
版权声明:本文为chenweichu原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。