从cmd运行git clone命令时观察到权限被拒绝错误

时间:2018-01-18 05:48:17

标签: git bash cmd

我正在使用Windows 7.当我从git bash克隆存储库时,我能够克隆但是当我尝试从cmd执行相同操作时我正在观察以下

error:Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Git路径在env变量中设置,并且能够在cmd上执行git命令

C:\Users\mays>git
usage: git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]

因为我正在尝试一些自动化,我需要这个。可以在这里帮助我。 []

0 个答案:

没有答案