且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何克隆私有的GitLab存储库?

更新时间:2022-11-24 21:36:30

您的ssh clone语句错误:git clone username git@example.com:root/test.git

You have your ssh clone statement wrong: git clone username git@example.com:root/test.git

该语句将尝试将名为username的存储库克隆到相对于当前路径git@example.com:root/test.git的位置.

That statement would try to clone a repository named username into the location relative to your current path, git@example.com:root/test.git.

您想忽略username:

git clone git@example.com:root/test.git