美文网首页
【GIT】remote: The project you wer

【GIT】remote: The project you wer

作者: 今天学习吗 | 来源:发表于2021-07-23 20:19 被阅读0次

gitlab新建了项目,要clone到本地,执行

git clone http://xxx.com/console/project-name.git

结果提示:

Cloning into 'project-name'...
remote: The project you were looking for could not be found.
fatal: repository 'https://xxx.com/console/project-name.git/' not found

按照网上的方案大多数都是让修改为

git clone http://username@xxx.com/console/project-name.git

我试了,完全无效。
然后又看到一个方式,就是sourceTree,但是这样虽然可以下载了,但是不能推啊!!
当执行 git push 时依然提示上面那个烦人的信息。
经过几轮研究发现之前查找的他们的情况应该都是没有密码的,而我相信公司的项目很多都是需要账户密码才能clone的吧,于是改为以下这样就可以了:

git clone http://username:password@xxx.com/console/project-name.git

相关文章

网友评论

      本文标题:【GIT】remote: The project you wer

      本文链接:https://www.haomeiwen.com/subject/rqvpmltx.html