我在GitLab中设置了一个新项目,并按照GitLab中的说明在笔记本电脑中设置了仓库。但是,我得到error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 ServicUnavailable
git clone https://gitlab.com/{my_username}/{prject_name}.git
cd {prject_name}
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 227 bytes | 227.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 Servic e Unavailable
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
答案 0 :(得分:0)
您可能已经克隆了只读文件。我不确定Gitlab,但通常无法推送到通过https克隆的存储库。
我建议使用ssh克隆。
git clone git@gitlab.com:{username}/{project_name}.git