git 配置 ssh 选项指定ssh key 文件

创建日期: 2022-10-26 12:30 | 作者: 风波 | 浏览次数: 12 | 分类: Git
  1. 使用 git clone 命令时指定 ssh 的 key 文件: 参考:https://www.cnblogs.com/azureology/p/14831296.html
git clone ssh://git@provider.com:userName/projectName.git --config core.sshCommand="ssh -i ~/location/to/private_ssh_key"
12 浏览
0 评论