如何解决“端口号以 'y' 结尾"的 url 错误?

编程入门 行业动态 更新时间:2024-10-24 08:27:25
本文介绍了如何解决“端口号以 'y' 结尾"的 url 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在尝试将 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 错误?

本文发布于:2023-08-07 14:18:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何解决   结尾   端口号   错误   url

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!