Git flow command error: 'flow' is not a git command

NetSystemAdmin picture NetSystemAdmin · Feb 10, 2015 · Viewed 23.1k times · Source

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?

Answer

sybozz picture sybozz · Mar 15, 2019

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

Source git-flow cheatsheet by Daniel Kummer

After successful installation run git flow init in your project and then follow the instructions to configure the git flow.