Gitflow错误可以';初始化

Gitflow错误可以';初始化,git,Git,我已经在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: comman

我已经在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?
我该怎么做才能解决这个问题呢?

报告了一个类似的问题,并建议自己使用恢复
shFlags/src/shFlags
文件

需要还原该文件才能成功:

. "$GITFLOW_DIR/gitflow-shFlags"
使用
gitflow shFlags

shFlags/src/shflags

我遇到过这样的问题!我已经解决了更改git flow文件第83行的问题:

#使用shFlags项目解析命令行参数。“$GITFLOW\u DIR/GITFLOW shFlags”

gitflow shFlags

#使用shFlags项目解析命令行参数

. “$GITFLOW\u DIR/shFlags/src/shFlags”

使文件/usr/local/bin/GITFLOW shFlags不包含单行,而是包含来自git repo()的完整文件。