代码有五六个月没有提交过,再次去pull的时候 出现不让pull的情况:
git pull 时 报错如下信息:
-
ssh: Could not resolve hostname https: nodename
nor servname provided, or not known fatal: Could not read from remote
repository.Please make sure you have the correct access rights and the
repository exists.
1.刚开始 以为fetch一下就可以了 ,fetch一下 还是不行:
然后发现刷新也不行,重新初始化clone代码也不行。
2.查看本地git下面的config中的url
remote -v 查看一下地址
发现地址和仓库不一样。这个只是clone地址。
现在要做的就是把url修改成仓库的地址
注意:这个修改后的地址
就是这一段
疑问:为什么以前用ssh可以 现在就不行了