我使用的是git 2.6.2.windows版本。在git bash上克隆git仓库时,我突然开始得到下面的错误信息:
$ git clone URL && scp -p -P 29418 URL:hooks/xxxxx/.git/hooks/
Cloning into 'xxxx'...
FATAL ERROR: Disconnected: No supported authentication methods available
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
export Git_SSH=/c/Users/user-name/AppData/Local/Programs/Git/bin/ssh.exe make it work.