为git添加ssh
应项目要求,需要为
Git
配置SSH
密钥
生成SSH密钥
1 |
|
输入命令后,会在对应的.ssh
文件夹下生成两个文件id_rsa
和 id_rsa.pub
将公钥拷贝到GitLab账户
1 |
|
配置Git
注意对Git版本有要求:>= 2.34.0
1git update-git-for-windows
1 |
|
1 |
|
使用ssh密钥签署提交
1 |
|
为git添加ssh
http://example.com/2023/03/08/others/增加ssh/