Gitflow error cannot initialize

I have gitflow installed in my directory where my github project is. However, when I try to start with the command " git flow init

", I get the following error messages:

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?

      

Any ideas on what I should do to fix this?

+3


source to share


2 answers


Issue 190 reports a similar problem and prompts you to restore the file shFlags/src/shflags

yourself using src/shflags

.

This file must be restored to git -flow call for gitflow-shFlags

for success:

. "$GITFLOW_DIR/gitflow-shFlags"

      



From gitflow-shFlags

:

shFlags/src/shflags

      

+4


source


I had a problem like this! I decided to change line 83 of the git-flow file:

#use the shFlags project to parse the command line arguments . "$GITFLOW_DIR/gitflow-shFlags"



to the value gitflow-shFlags

# use the shFlags project to parse the command line arguments . "$GITFLOW_DIR/shFlags/src/shflags"

0


source







All Articles