git clone报错:remote: The project you were looking for could not be found.
程序员文章站
2022-04-28 12:42:51
...
$ git clone http://xxx
Cloning into 'xxx'...
remote: The project you were looking for could not be found.
fatal: repository 'http://xxx' not found
原因:
1.git有记忆功能,记录了之前的认证信息
2.git记录的账号没有clone此项目的权限
解决方法总结如下:
1. 修改控制面板信任凭据
2. 卸载重装git credentials manager (亲测有效,推荐)
$ git credential-manager uninstall
$ git credential-manager install
3. clone时带上用户名和密码
git clone http://[email protected]/xxx/xxx.git
4. 以上方法都无效时,在浏览器中输入clone的地址,若不能访问,则说明无权限,不能clone