【发布时间】:2021-04-07 08:01:00
【问题描述】:
我创建了一个新项目并尝试推送新的存储库。
我的做法是这样的:
git init
git remote add origin https://gitlab.com/test.dev/project1.git
git add .
git commit -m 'Initial commit'
git push origin master
这是错误:
remote: The project you were looking for could not be found.
fatal: repository 'https://gitlab.com/test.dev/project1.git/' not found
我已经尝试删除并重新申请仍然不起作用。
【问题讨论】:
-
请再次确认该 URL 上存在这样的 repo。
-
@iBug 当我尝试公开时它可以工作,但是当我更改为私有时出现错误
-
您是否尝试通过 ssh 而不是 https 推送(并事先设置 ssh 密钥)?