fatal: 似乎不是 git 存储库

2024-04-01

当我的 Git 存储库 URL 正确时,为什么会收到此错误?

fatal: '[email protected] /cdn-cgi/l/email-protection/gittest.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

请在下面的上下文中查看它,或者作为屏幕截图 https://i.stack.imgur.com/vy0JX.jpg.

jitendra@JITENDRA-PC /c/mySite (master)
$ git push beanstalk master
fatal: '[email protected] /cdn-cgi/l/email-protection/gittest.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

jitendra@JITENDRA-PC /c/mySite (master)
$ git clone git://github.com/jquery/jquery.git
Cloning into jquery...
Remote: Counting objects: 19803, done.
Remote: Compressing objects: 100% (5196/5196), done.
Remote: Total 19803 (delta 14204), reused 19549 (delta 14052)
Receiving objects: 100% (19803/19803), 12.80 MiB | 591 KiB/s, done.
Resolving deltas: 100% (14204/14204), done.

jitendra@JITENDRA-PC /c/mySite (master)
$ gitk --all

jitendra@JITENDRA-PC /c/mySite (master)
$ gitk -all

jitendra@JITENDRA-PC /c/mySite (master)
$ git remote add origin [email protected] /cdn-cgi/l/email-protection/gittest.git

jitendra@JITENDRA-PC /c/mySite (master)
$ git push origin master
fatal: '[email protected] /cdn-cgi/l/email-protection/gittest.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

jitendra@JITENDRA-PC /c/mySite (master)

你已经得到了语法scp- 指定存储库的方式有点错误 - 它必须是:

[user@]host.xz:path/to/repo.git/

...正如您在中看到的克隆 http://git-scm.com/docs/git-clone#URLS文档。您应该使用以下 URL:

[email protected] /cdn-cgi/l/email-protection:/gittest.git

即在您正在使用的网址中,您错过了: (colon)

要更新原始 URL,您可以执行以下操作:

git remote set-url origin [email protected] /cdn-cgi/l/email-protection:/gittest.git
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

fatal: 似乎不是 git 存储库 的相关文章

随机推荐