在尝试将现有存储库从 gitlab 克隆到我的本地驱动器时。我使用的格式
$ git clone https://github.com/libgit2/libgit2 mylibgit
生成的文件夹例如mylibgit
在 XAMPP Web 文件夹(即 htdocs)之外的某个地方找到,我将其移到那里,但它没有按预期工作。
我将其移至桌面并收到错误:
fatal: unable to access 'https://[email protected] /cdn-cgi/l/email-protection:xxxxx/yyyyyy/':Port number ended with 'y'
对于gitlab,不需要指定用户。
将其替换为基于您的 GitLab 帐户名的 https url。
cd /path/to/your/repo
git remote set-url origin https://gitlab.com/<username>/<yourProjectName.git>
git push -u origin master
Note:
尝试从 gitlab 克隆已经存在的存储库
这矛盾了“git clone https://github.com/libgit2/libgit2
”,因为这是 GitHub 网址,而不是 GitLab 网址。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)