解决git提交代码失败的问题

环境:

windows 10 Pro

git 2.22.0

TortoiseGit 2.8.0

问题场景:

已经配置了ssh密钥、用户名、密码之后,可以正常从仓库下载代码,

但是当上传代码的时候报如下错误:

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

解决:

打开TortoiseGit,在 设置 => Network => SSH设置为 git安装目录/usr/bin/ssh.exe  即:

C:\Program Files\Git\usr\bin\ssh.exe

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容