Windows Octopress博客部署错误';雷克流产了!没有这样的文件或目录-git remote-v';
我成功地在我的windows(windows8 x64)上安装了octopress,然后创建了一个名为wenliangcan.github.com的repo,并尝试在github上部署一个博客 当我键入命令Windows Octopress博客部署错误';雷克流产了!没有这样的文件或目录-git remote-v';,windows,git,github,github-pages,octopress,Windows,Git,Github,Github Pages,Octopress,我成功地在我的windows(windows8 x64)上安装了octopress,然后创建了一个名为wenliangcan.github.com的repo,并尝试在github上部署一个博客 当我键入命令rake setup\u github\u pages并输入存储库url时,会出现一个错误: rake aborted! No such file or directory - git remote -v 在输入存储库url之前,它为我提供了如下示例: Enter the read/writ
rake setup\u github\u pages
并输入存储库url时,会出现一个错误:
rake aborted!
No such file or directory - git remote -v
在输入存储库url之前,它为我提供了如下示例:
Enter the read/write url for your repository
(For example, 'git@github.com:your_username/your_username.github.com)
一些第三方教程的示例如下:
git@github.com:your_username/your_username.github.com.git
我试过这两种方法,但它给了我同样的错误
以下是CMD的屏幕截图:
屏幕截图的内容:
D:\Profiles\GitHub\Octopress>rake setup_github_pages
Enter the read/write url for your repository
(For example, 'git@github.com:your_username/your_username.github.com)
Repository url: git@github.com:wenLiangcan/wenliangcan.github.com.git
rake aborted!
No such file or directory - git remote -v
Tasks: TOP => setup_github_pages
(See full trace by running task with --trace)
D:\Profiles\GitHub\Octopress>rake setup_github_pages
Enter the read/write url for your repository
(For example, 'git@github.com:your_username/your_username.github.com)
Repository url: git@github.com:wenLiangcan/wenliangcan.github.com
rake aborted!
No such file or directory - git remote -v
Tasks: TOP => setup_github_pages
(See full trace by running task with --trace)
我怎样才能解决这个问题
谢谢大家!
No such file or directory - git remote -v
这意味着您的ruby脚本在当前执行路径中找不到git(有点像),或者rake脚本以某种方式强制设置自己的路径。因此,在启动rake命令时,请确保路径正确:请参见“”作为具体说明
另一个问题可能是Window7上的ruby版本问题(1.9.2正常,1.9.3不正常)(请参阅“”)谢谢!我将
git.exe
目录添加到PATH
中,现在一切正常:)