在尝试将 gitlab 中的现有存储库克隆到我的本地驱动器时.我用的格式
While trying to clone an already existing repository from gitlab into my local drive. I used the format
$ git clone github/libgit2/libgit2 mylibgit生成的文件夹,例如 mylibgit 是在 XAMPP Web 文件夹(即 htdocs)之外的某个地方找到的,我将它移到那里,但它没有按预期工作.
The resulting folder e.g mylibgit was found somewhere outside the XAMPP web folder (i.e htdocs), I moved it there but it's not working as supposed.
我将它移到我的桌面并收到错误:
I moved it out to my desktop and got the error :
fatal: unable to access 'git@gitlab:xxxxx/yyyyyy/':Port number ended with 'y' 推荐答案对于gitlab,不需要指定用户.根据您的 GitLab 帐户名称将其替换为 https url.
For gitlab, you don't need to specify the user. Replace it by an https url based on your GitLab account name.
cd /path/to/your/repo git remote set-url origin gitlab/<username>/<yourProjectName.git> git push -u origin master注意:
试图从 gitla 克隆一个已经存在的存储库
trying to clone an already existing repository from gitla
这与git clone github/libgit2/libgit2"相矛盾,因为这是 GitHub 网址,而不是 GitLab 网址.
This contradict "git clone github/libgit2/libgit2", since this is a GitHub url, not a GitLab one.
更多推荐
如何解决“端口号以 'y' 结尾"的 url 错误?
发布评论