git无权限clone项目时,命令解决办法

git–remote: The project you were looking for could not be found or you don’t have permission to view it.
在执行git clone的时候遇到报错:remote: The project you were looking for could not be found or you don’t have permission to view it.

可以确认该git地址是存在的,并且我也是有权限的

执行命令:git config --list检查信息也没有错,需要在git命令里涉及到仓库地址的地方加上自己的用户名,如:

git remote add origin http://[email protected]/abc.git

git clone http://[email protected]/abc.git

猜你喜欢

转载自blog.csdn.net/qq_41231694/article/details/129593014
今日推荐