Gitflow: Windows 上的安装问题 - “找不到文件 - shflags”

创建于 2012-07-09  ·  9评论  ·  资料来源: nvie/gitflow

你好,

我第一次尝试在 Windows 7 64 位上安装 git flow。

我缺少 getopt.exe,所以我安装了 util-linux (http://downloads.sourceforge.net/gnuwin32/util-linux-ng-2.14.1-setup.exe)。 然后,我在没有管理员权限的情况下安装了 git flow,它要求我在管理员 cmd 中重新启动安装。 在我 sudo cmd 之后,我得到

已复制 1 个文件
C:\tmp\gitflow\git-flow -> C:\Program Files (x86)\Gitbin\git-flow
C:\tmp\gitflow\git-flow-feature -> C:\Program Files (x86)\Gitbin\git-flow-feature
C:\tmp\gitflow\git-flow-hotfix -> C:\Program Files (x86)\Gitbin\git-flow-hotfix
C:\tmp\gitflow\git-flow-init -> C:\Program Files (x86)\Gitbin\git-flow-init
C:\tmp\gitflow\git-flow-release -> C:\Program Files (x86)\Gitbin\git-flow-release
C:\tmp\gitflow\git-flow-support -> C:\Program Files (x86)\Gitbin\git-flow-support
C:\tmp\gitflow\git-flow-version -> C:\Program Files (x86)\Gitbin\git-flow-version
已复制 7 个文件
C:\tmp\gitflow\gitflow-common -> C:\Program Files (x86)\Gitbin\gitflow-common
C:\tmp\gitflow\gitflow-shFlags -> C:\Program Files (x86)\Gitbin\gitflow-shFlags
已复制 2 个文件
找不到文件 - shflags
已复制 0 个文件
发生了一些意想不到的错误。 抱歉,您必须自己修复它们。 [Y]?Y

谷歌搜索这个确切的字符串(“找不到文件 - shflags”),有零个精确匹配结果。 我应该如何进行?

最有用的评论

你好,

您遇到了子模块shFlags 的问题:

git clone https://github.com/nvie/gitflow.git
cd gitflow
git submodule 
-2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags
git submodule init
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
git submodule update
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 454 (delta 389), reused 454 (delta 389)
Receiving objects: 100% (454/454), 101.19 KiB, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
git submodule status
 2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags (1.0.3)

问候。

所有9条评论

顺便说一句,当我再次尝试安装时(不小心从非管理员 cmd 中),我得到了这个:

C:\tmp\gitflow\contrib>msysgit-install.cmd
将 gitflow 安装到“C:\Program Files (x86)\Git”...
getopt.exe... 找到了
GitFlow 已经安装。
你想替换它吗[y/n]n
安装取消。

git flow 是否正确安装? 我该如何检查?

你好,

您遇到了子模块shFlags 的问题:

git clone https://github.com/nvie/gitflow.git
cd gitflow
git submodule 
-2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags
git submodule init
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
git submodule update
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 454 (delta 389), reused 454 (delta 389)
Receiving objects: 100% (454/454), 101.19 KiB, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
git submodule status
 2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags (1.0.3)

问候。

太好了,谢谢!

有同样的问题并被“git submodule update”卡住了

收到这个错误

$ git 子模块更新
致命:需要一次修订
无法在子模块路径“shFlags”中找到当前版本

我究竟做错了什么 ?
搜索谷歌最终得到https://github.com/mxcl/homebrew/issues/15412
但我在 windows7 而不是在自制软件上,我没有得到他们的修复

有人有提示吗? 我真的会提前致谢

嘿@grails-ruin-app 我和你有完全一样的问题,你有没有找到解决办法?

@cmchiu
问题是您与 git hub 的连接消失了。 并且 gitflow\shFlags 将有一个 .git 文件。

只需删除它,你就可以开始了。

还要修复那个该死的错误,只需阅读低谷

http://stackoverflow.com/questions/4891527/git-protocol-blocked-by-company-how-can-i-get-around-that

git config --global url."https://".insteadOf git://

帮我解决了这个问题。

@cmchiu是的,我切换到基于 unix 的系统:D

优秀的! 子模块更新帮助我修复它:)

嗯,很遗憾我不能让它工作......

C:\var\www\gitflow>git submodule init

C:\var\www\gitflow>git submodule update

C:\var\www\gitflow>git submodule status

C:\var\www\gitflow>

很确定应该出现一些东西:o

此页面是否有帮助?
0 / 5 - 0 等级