当前位置: 移动技术网 > IT编程>开发语言>.net > sourcetree pull时出错Please make sure you have the correct access rights and the repository exists

sourcetree pull时出错Please make sure you have the correct access rights and the repository exists

2020年07月15日  | 移动技术网IT编程  | 我要评论
github的pull时出错:错误信息:git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin feature/functions_offshore_UT/8515:feature/functions_offshore_UT/8515Pushing to git@github.com:ISID/7BK-DBS-Refactor.gitFATAL ERROR:

github的pull时出错:
错误信息:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin feature/functions_offshore_UT/8515:feature/functions_offshore_UT/8515
Pushing to git@github.com:ISID/7BK-DBS-Refactor.git
FATAL ERROR: Network error: Connection reset by peer
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

在这里插入图片描述
修改方式:
修改C:\Windows\System32\drivers\etc下的hosts文件:
140.82.113.3 gitHub.com199.232.69.194 github.global.ssl.fastly.net
原文件:
在这里插入图片描述
修改以后文件:
在这里插入图片描述
然后重启sourcetree,成功。
在这里插入图片描述

本文地址:https://blog.csdn.net/weixin_42163902/article/details/107344053

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网