问题描述:no matching host key type found. Their offer: ssh-rsa,ssh-dss Could not read from remote repository.
问题原因:项目还在本地,但是git未安装,重新安装后,没有配置git,打开项目上传时,出现这个问题。
结局方案:打开项目中的.git文件夹(这个文件夹被隐藏,需要点开查看)
在.git文件夹中,打开config文件
红框框处url错误,大致意思就是这个路径没有访问权限(我理解为这个路径错了,所以也就没访问权限,而不是这个路径对的,但是没有访问权限)
将url修改成该项目的仓库地址,例:
https://gitee.com/longwoming/Purchase.git
[remote "origin"]
url = https://gitee.com/longwoming/Purchase.git
fetch = +refs/heads/*:refs/remotes/origin/*
如有不对,请指正