TortoiseGit 在 git pull 的时候报错,disconnected, no supported authentication methods available, server sent public key
git.exe pull --progress -v --no-rebase "origin" fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. git did not exit cleanly (exit code 1) (136501 ms @ 2019/11/12 10:47:01)
看到这里, https://www.cnblogs.com/hamste…
1.安装好小乌龟git后,用小乌龟的pull 从github上拉取项目,遇到错误:
disconnected no supported authentication methods available(server sent: publickey)
或者是 git did not exit cleanly (exit code 1)
亦或者是 git did not exit cleanly (exit code 128)
多半是因为git和小乌龟有冲突,解决方法:
右键–小乌龟—settings–network–修改ssh client为git的ssh.exe
但是又报错, git: ‘xxx@git.code.oa.com’ is not a git command. See ‘git –help’.
fatal: Could not read from remote repository.
这个感觉就是拼命令的时候拼错了,看到这里, https://help.github.com/cn/git…
用 git remote -v 命令,看到这里的远程仓的地址果然是带了这种 xxx@git.code.oa.com 的格式
那么,一个简单的思路,就是把他切成 https 的格式
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
切换之后报错,SSL certificate problem: unable to get local issuer certificate
看到这里, https://my.oschina.net/jiec/bl…
通过 git config –global http.sslVerify false 设置跳过 ssl 证书检查,在命令行下和 TortoiseGit 下都可以 git pull 成功了