全新安装后 Git 错误
所以我尝试运行 createproject.sh 脚本 来自 HTML5 Boilerplate 并遇到错误。我看到一个记录在此处的问题,该问题似乎相关,并且据我所知最好解决这个问题的方法是升级到最新的 git。所以我从谷歌代码(git-1.7.5.4-x86_64-leopard)中获取了 git 并运行了安装程序。现在,当我尝试运行 shell 脚本时,我遇到了这个错误:
fatal: Not a git repository (or any parent up to mount parent /Users)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
我正在运行一台启用了雪豹和 filevault 的 mac(我不认为这很重要,但我想我会提到它)。我已使用 dmg 中提供的卸载脚本将其卸载并尝试重新安装。我也尝试过使用谷歌代码(i386)提供的其他版本的git,但无济于事。任何帮助将不胜感激!谢谢。
So I'm trying to run the createproject.sh script from HTML5 Boilerplate and ran into an error. I saw an issue documented here that seemed relevant and from what I could tell the best way to fix it was to upgrade to the latest git. So I grabbed git from google code (git-1.7.5.4-x86_64-leopard) and ran the installer. Now when I try and run the shell script I wind up with this error:
fatal: Not a git repository (or any parent up to mount parent /Users)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
I'm running a mac with snow leopard and filevault enabled (didn't think this mattered but thought I'd mention it). I've used the uninstall script provided in the dmg to uninstall it and try reinstalling. I've also tried using the other version of git provided by google code (i386) but to no avail. Any help would be much appreciated! Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对“HTML5 Boilerplate”一无所知,但该脚本中的第一个命令似乎是 git rev-parse,它只能在 git repo 中工作。您是否在本地 git 存储库的目录或子目录中运行此脚本?
具体来说,该脚本指示您应该从
html5-boilerplate/build
运行它,我假设html5-boilerplate
将是您链接的 github 存储库的本地克隆。从头开始执行此操作的步骤如下:I don't know anything about "HTML5 Boilerplate", but the first command in that script seems to be a git rev-parse, which will only work inside a git repo. Are you running this script in a directory or subdirectory of a local git repo?
Specifically, the script indicates you should run it from
html5-boilerplate/build
, where I assumehtml5-boilerplate
would be your local clone of the github repo that you linked. The steps you would take to do it from scratch would go something like: