git clone 项目时报错:The project you were looking for could not be found

在gitlab上想git clone 项目时报错:

 remote: The project you were looking for could not be found.
fatal: repository 'http://gitlabxxx....' not found

git clone 项目时报错:The project you were looking for could not be found_第1张图片

 上网查了一下原因是:

 因为自己的项目不止一个 又有自动保存git密码的功能,当clone第二个项目的时候就报了错误!

解决方法:

在自己的项目路径上加上自己的用户名,例如:
git clone http://10.9.100.1:0000/credit/code/xiangmu.git (失败)
git clone http://用户名@10.9.100.1:0000/credit/code/xiangmu.git(成功)

git clone 项目时报错:The project you were looking for could not be found_第2张图片

你可能感兴趣的:(git)