使用 git clone 时如何修复“找不到您要查找的项目" [英] How to fix 'The project you were looking for could not be found' when using git clone

查看:18
本文介绍了使用 git clone 时如何修复“找不到您要查找的项目"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将项目从 gitlab 克隆到我的本地计算机.我已被授予开发人员权限,并使用命令 'git clone

I am trying to clone a project from gitlab to my local machine. I have been granted rights as a developer, and use the command 'git clone

  • 所有协议都不起作用(ssh 和 https 都不起作用)

我收到的错误消息:

remote: The project you were looking for could not be found.
fatal: repository 'https://gitlab.com/KZA_Connected/skilltree.git/' not found

任何帮助将不胜感激.

推荐答案

我通过简单地将用户名添加到 url 来解决这个问题,如下所示,

I solved this by simply adding username to url like below,

之前:https://gitlab.com/gitlab_user/myrepo.git

之后:https://gitlabusername@gitlab.com/gitlab_user/myrepo.git

这篇关于使用 git clone 时如何修复“找不到您要查找的项目"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆