【发布时间】:2016-12-17 06:36:15
【问题描述】:
我在 Git bash 终端和普通命令提示符下执行了这个命令 "C:\Program Files (x86)\Git\bin\git.exe" clone ssh://<user>@<org>:<path to repo>。
在 Git Bash 终端中执行时,克隆工作正常,但在命令提示符下运行时,出现以下错误。
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我需要通过 Windows 批处理脚本运行 git clone,这就是为什么 我需要让它通过命令行运行。如何完成这项工作?
注意 :-
1.将公钥添加到使用ssh-keygen生成的remote(gerrit)。
【问题讨论】:
标签: windows git bash ssh gerrit