致命的:似乎不是一个混帐存储库 [英] fatal: does not appear to be a git repository
本文介绍了致命的:似乎不是一个混帐存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
编辑:
致命:'git@skarp.beanstalkapp.com/gittest.git'没有出现成为一个git仓库
fatal:远程终端意外挂起
解决方案
您已经获得了
[user @] host.xz:path / to / repo.git /
...正如您在中所见git clone 文档。您应该使用网址:
git@skarp.beanstalkapp.com:/gittest.git
即在您使用的URL中,您遗漏了:
(冒号)
更新原始URL你可以这样做:
git remote set-url origin git@skarp.beanstalkapp.com:/gittest.git
Why am I getting this error when my git repository url is correct?
EDIT:
fatal: 'git@skarp.beanstalkapp.com/gittest.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
解决方案
You've got the syntax for the scp
-style way of specifying a repository slightly wrong - it has to be:
[user@]host.xz:path/to/repo.git/
... as you can see in the git clone documentation. You should use instead the URL:
git@skarp.beanstalkapp.com:/gittest.git
i.e. in the URL you're using, you missed out the :
(colon)
To update the URL for origin you could do:
git remote set-url origin git@skarp.beanstalkapp.com:/gittest.git
这篇关于致命的:似乎不是一个混帐存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文