把C:\Users\Administrator.ssh里面东西都删了
运行
ssh-keygen -t rsa -b 4096 -C "你的邮箱"
生成新的rsa文件
打开id_rsa.pub,将里面的值复制到github的ssh key当中
如果使用sourcetree,同样,在工具》选项当中的SSH要指向C:\Users\Administrator.ssh
克隆github地址记得用ssh地址
sourcetree历史版本
https://www.sourcetreeapp.com/download-archives
不行的话,建议安装2.6.10版本,如果安装登录不了,找到C:Users\Administrator\AppData\Local\Atlassian\SourceTree\目录,新建accounts.json文件复制进去
[{
"$id": "1",
"$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
"Authenticate": true,
"HostInstance": {
"$id": "2",
"$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount",
"Host": {
"$id": "3",
"$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
"Id": "atlassian account"
},
"BaseUrl": "https://id.atlassian.com/"
},
"Credentials": {
"$id": "4",
"$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account",
"Username": "",
"Email": null
},
"IsDefault": false
}]
网友评论