我已经在github项目所在的目录中安装了gitflow。
但是,当我尝试使用命令“git flow init”启动时,会收到以下错误消息:

git flow init
C:/cygwin64/usr/local/bin/gitflow-shFlags: line 1: shFlags/src/shflags: No such file or directory
C:\cygwin64\usr\local\bin\git-flow: line 85: DEFINE_boolean: command not found
C:\cygwin64\usr\local\bin\git-flow: line 88: FLAGS: command not found
fatal: 'flow' appears to be a git command, but we were not
able to execute it. Maybe git-flow is broken?

你知道我该怎么做吗?

最佳答案

issue 190报告了一个类似的问题,并建议使用shFlags/src/shflags自己还原src/shflags文件。
要使git-flow call成功,需要还原该文件:

. "$GITFLOW_DIR/gitflow-shFlags"

使用gitflow-shFlags
shFlags/src/shflags

08-26 12:37