美文网首页
Git 常见错误解决方法

Git 常见错误解决方法

作者: 87d6dc4b11a7 | 来源:发表于2024-11-17 15:45 被阅读0次

Git常见错误解决方法

1、错误:ssh variant 'simple' does not support setting port
解决方法: 输入命令 git config --global ssh.variant ssh

2、错误:error: remote unpack failed: error Missing tree 0752c143c8
解决方法: git push --no-thin origin HEAD:refs/for/branchname

3、错误:Their offer:diffie-hellman-group1-sha1
解决方法:在各自.ssh目录下增加文件config 内容为

Host *
KexAlgorithms +diffie-hellman-group1-sha1

4、错误:no matching host key type found. Their offer: ssh-rsa
解决方法:在各自.ssh目录下增加文件config 内容为

HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

相关文章

网友评论

      本文标题:Git 常见错误解决方法

      本文链接:https://www.haomeiwen.com/subject/ejnujjtx.html