全新安装后 Git 错误

发布于 2024-11-24 00:29:47 字数 700 浏览 1 评论 0原文

所以我尝试运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最佳男配角 2024-12-01 00:29:47

我对“HTML5 Boilerplate”一无所知,但该脚本中的第一个命令似乎是 git rev-parse,它只能在 git repo 中工作。您是否在本地 git 存储库的目录或子目录中运行此脚本?

具体来说,该脚本指示您应该从 html5-boilerplate/build 运行它,我假设 html5-boilerplate 将是您链接的 github 存储库的本地克隆。从头开始执行此操作的步骤如下:

cd <projects dir>
git clone git://github.com/paulirish/html5-boilerplate.git
cd html5-boilerplate/build
chmod +x createproject.sh
./createproject.sh

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 assume html5-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:

cd <projects dir>
git clone git://github.com/paulirish/html5-boilerplate.git
cd html5-boilerplate/build
chmod +x createproject.sh
./createproject.sh
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文