如何解决remote: The project you were looking for could not be found

代码始终拉取失败,报错如下

remote: The project you were looking for could not be found

发生这个问题的原因,在于git账号可能并未真正登录。
我们可以通过打开电脑的凭据管理器,查看git当前的登录是否正常。
如何解决remote: The project you were looking for could not be found_第1张图片
如果你发现,你的账号相关的凭据并不存在,可能需要重新登录一次git

解决方案:

在自己的项目路径上加上自己的用户名,
例如:我要拉取http://10.9.100.1:0000/credit/code/xiangmu.git的代码
Git clone http://10.9.100.1:0000/credit/code/xiangmu.git (失败)
Git clone http://[email protected]:0000/credit/code/xiangmu.git(成功)

如果密码输入错了,你可以再凭据管理器那里删掉当前凭据,重新执行上面的代码,就会提示你再次输入密码进行验证,否则不会提示你再次输入密码。

你可能感兴趣的:(前端必备知识,git)