如何使用“端口号以'y'结尾"的网址错误进行故障排除? [英] How to troubleshoot a url error with "Port number ended with 'y'"?

查看:90
本文介绍了如何使用“端口号以'y'结尾"的网址错误进行故障排除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试将gitlab中已经存在的存储库克隆到我的本地驱动器中时.我使用了格式

While trying to clone an already existing repository from gitlab into my local drive. I used the format

$ git clone https://github.com/libgit2/libgit2  mylibgit 

在XAMPP Web文件夹之外的某个地方(例如htdocs)找到了生成的文件夹,例如mylibgit,我将其移至该文件夹,但无法正常工作.

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 'https://git@gitlab.com:xxxxx/yyyyyy/':Port number ended with 'y'

推荐答案

对于gitlab,您无需指定用户.
根据您的GitLab帐户名称将其替换为https网址.

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 https://gitlab.com/<username>/<yourProjectName.git>
git push -u origin master

注意:

试图从gitla克隆一个已经存在的存储库

trying to clone an already existing repository from gitla

这与"git clone https://github.com/libgit2/libgit2"矛盾,因为这是GitHub网址,而不是GitLab网址.

This contradict "git clone https://github.com/libgit2/libgit2", since this is a GitHub url, not a GitLab one.

这篇关于如何使用“端口号以'y'结尾"的网址错误进行故障排除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆