打开 sourcedtree 命令行模式输入以下内容,删除所有不相干或者冲突的账号
rundll32.exe keymgr.dll,KRShowKeyMgr
使用如下命令生成ssh公钥和私钥对
ssh-keygen -t rsa -C 'xxx@xxx.com' 然后一路回车(-C 参数是你的邮箱地址)
一顿回车就可以
.如果你的.ssh/id_rsa已经,则会出现:/Users/yzq/.ssh/id_rsa already exists.
Overwrite (y/n)? y
输入:y (重新覆盖)
输入:n (不覆盖)
cd ~/.ssh
ls(查看目录是否有id_rsa.pub文件)
查看公钥:cat id_rsa.pub 或者vim id_rsa.pub
可完成GitLab配置ssh key
搜索里面 写 ssh key 就能搜索到设置 ssh key 的地方 加入生成的 key 就可以了