Git flow command error: 'flow' is not a git command
Solution 1
The git flow is not installed in your machine. Just run this command,
macOS:
$ brew install git-flow-avh
Linux:
$ apt-get install git-flow
Windows:
$ wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash
After successful installation run git flow init
in your project and then follow the instructions to configure the git flow.
Solution 2
Git is installed but Gitflow is not. Gitflow is a Git extension and has to be installed separately.
Install it as described on GitHub and you should be fine ;)
Solution 3
If you want to install Git Flow on Windows, do as follows (based on this instructions)
-
Clone the git flow repository
git clone --recursive git://github.com/nvie/gitflow.git
Download the
getopt
archive and extract thegetopt.exe
file to the location where Git executable is installed (something like C:\Programs\Git\bin)-
Execute the following command, where the argument is the Git path installation (again, something like C:\Programs\Git). You don't need to specify the
bin
directory here.contrib\msysgit-install.cmd "C:\Programs\Git"
And that's it. Check that all is working using the command git flow
NetSystemAdmin
Updated on March 16, 2020Comments
-
NetSystemAdmin about 4 years
I am very new to Git and am starting to learn the command line version. I believe my git flow is not installed correctly. I am running this from a pc.
When i run following command:
git flow feature start JamesTest
I get the following error:
git: 'flow' is not a git command. See 'git --help'
Did you mean any of these?Looks like the git flow command is not being recognized from all paths? How do I fix this?
-
Daniel Tonon over 7 yearsThanks, this is a much simpler set of instructions than the instructions in Lubos other answer :)
-
Saitama almost 3 yearsAny difference between
brew install git-flow-avh
andbrew install git-flow
?