git clone 失败问题

 

错误提示:

Cloning into 'hg-assist-admin'...

GitLab: The project you were looking for could not be found.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

git clone 失败问题

排查问题 1 : 查看远程仓库(无效)git clone 失败问题

排查问题 2 : 查看config配置信息,无 (无效)git clone 失败问题

排查问题 3 : 在拉取代码时候添加用户名 (无效)git clone 失败问题

...

各种无效,后面只能是觉得在服务器上的上一个开发者做了类似的操作,SSH 是上一个人生成的

所以我重新生成了SSH ,再去clone ,成功!

cd ~/.ssh

ssh-****** -o (覆盖之前的SSH)

cat id_rsa.pub

在gitlab上,搜索框搜SSH KEYS ,添加,OK