2012-04-29 55 views
0

这里是我使用的Heroku开发一个应用程序,我使用github上与它一起为一个项目我的问题Github上和Heroku的克隆错误 - 无效的路径/语法错误

现在,当我尝试和使用github上(克隆),而Heroku的对不同的项目,它说工作...

[email protected]:~$ 
[email protected]:~$ 
[email protected]:~$ git init 
Initialized empty Git repository in /home/michael/.git/ 
[email protected]:~$ ls 
Desktop Downloads   gifiniti  Music  Pictures Templates Ubuntu One 
Documents examples.desktop gifinitiApr24 oldgifiniti Public tmp  Videos 
[email protected]:~$ git clone [email protected]:toadiferus/SecretTunnel 
Cloning into SecretTunnel... 

! Invalid path. 
! Syntax is: [email protected]:<app>.git where <app> is your app's name. 

fatal: The remote end hung up unexpectedly 
[email protected]:~$ 

我将如何解决这个问题?在这个特定的问题上找不到任何支持。 如何更改命令的语法?我想从github克隆一个项目,而不是heroku。

谢谢!

  • 迈克尔

回答

0

首先,在克隆之前,您不需要init-init用于将项目文件夹转换为git存储库,除非您真的打算将整个用户目录转换为git repo?我建议你删除将从你这样做创建的.git文件夹。

为了确保您使用的是正确的路径,请转到github上的项目,并使用看起来像剪贴板的图标将正确的URL复制到剪贴板,粘贴到命令行并查看会发生什么。

我也想不明白,为什么当你做一个

​​

你会得到什么看起来像Heroku的推错误???从github URL中的Git克隆应该简单地将项目从github克隆到本地机器上。

! Invalid path. 
! Syntax is: [email protected]:<app>.git where <app> is your app's name. 

你在编辑你正在粘贴的输出吗?

0

的git的URL应该git的上月底,即。 [email protected]:toadiferus/SecretTunnel.git

+0

我试过,但我最终得到了相同的错误 – michaelghinrichs 2012-04-29 05:56:57

+0

'git clone [email protected]:toadiferus/SecretTunnel.git'在这里工作完美。 – sevenseacat 2012-04-29 05:58:48

+0

所以你在你的电脑上试过它,它工作?好了,这有助于我更好地了解问题的来源,谢谢! – michaelghinrichs 2012-04-29 06:05:54

1

如果您使用了heroku帐户插件,您的〜/ .ssh/config可能已被劫持。同样的事情发生在我身上。我删除了我的SSH配置的内容,一切都很好!

+1

对于可能劫持他们账户的任何东西(如果你是被____劫持的),你似乎都错过了这个词。需要这些信息才能找到根本原因。 – 2012-10-29 21:39:11