作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我在我的 windows(windows8 x64) 上成功安装了 octopress,然后我创建了一个名为 wenliangcan.github.com 的 repo,并尝试在 github 上部署一个博客。
当我键入命令 rake setup_github_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 脚本在当前执行 PATH
中找不到 git(有点像在 this issue 中),或者 rake 脚本以某种方式强制设置它自己的 PATH。
因此,在启动 rake 命令时确保 PATH 是正确的:请参阅“No such file or directory - git ls-files
— WINDOWS”作为具体说明。
另一个问题可能是 Window7 上的 ruby 版本问题(1.9.2 工作,1.9.3 不工作)(参见“Installation on Windows 7 - segmentation fault when running "rake db:migrate"”)
关于windows - Octopress 博客部署错误 'rake aborted! No such file or directory - git remote -v',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12400185/
我是一名优秀的程序员,十分优秀!