解决git clone代码,报错remote: The project you were looking for could not be found or you don‘t

问题描述

git clone项目时,clone失败,错误信息如下:
remote: The project you were looking for could not be found or you don't have permission to view it. fatal: repository 'https://119.23.248.3/xxxx/pad.git' not found


原因分析

由于我在没有账号前用的同事的账号进行clone代码,所以之后克隆的时候系统还使用我之前的用户来连接,所以会报错。

查找了许多资料,有更改本地账号密码,还有直接去凭据里修改,发现都没有用


解决办法

最后发现在克隆的时候加上当前用户名就可以了,然后就会让你输入密码(注意是隐藏看不见的),输入成功就会执行clone代码

git clone http://Robergean@119.23.248.3/xxxx/pad.git
Robergean为我当前使用的用户,替换成自己的就行。

猜你喜欢

转载自blog.csdn.net/Robergean/article/details/125997637
今日推荐