Git 常见错误解决方法
2024-11-17 本文已影响0人
87d6dc4b11a7
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