版权声明:本文为博主yellowcong原创文章,未经博主允许不得转载。 https://blog.csdn.net/yelllowcong/article/details/80661753
童鞋们应该知道,公司的开发中,仓库肯定是通过公钥和私钥的方式进行访问的,但是每次都通过git来执行命令,对于我这种就完犊子了,我习惯使用TortoiseGit ,今天交大家如何设定git和TortoiseGit 同用一个ssh。解决方案,就是修改TortoiseGit 默认的ssh,修改为git的ssh
1 添加证书
这个是通过gitbush来添加的。
git config --global user.name "yellowcong"
git config --global user.email "[email protected]"
#生成密钥
ssh-keygen –t rsa –C "[email protected]"
然后就生成了一个公钥了,然后将这个共钥拷贝到gerrit或者gitlab等试试。
2 设定TortoiseGit 管理ssh
这个是默认的,使用的是TortoiseGit 自带的ssh客户端
修改为git目录下面的ssh