Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 479
NetSystemAdmin Avatar asked Feb 10 '15 17:02

NetSystemAdmin


People also ask

Which of the following is not a git command?

git: 'remote-https' is not a git command. See 'git --help'.

What is git flow command?

Git-flow is a wrapper around Git. The git flow init command is an extension of the default git init command and doesn't change anything in your repository other than creating branches for you.

What is the difference between git flow and GitHub flow?

Git Flow is usually more complicated than GitHub flow. It is used when your software has the concept of “release”. This flow works perfectly when you work in a team of one or more developers and they collaborate on the same feature.

Which branch should be used for bringing forth production releases git flow?

A separate merge of the Gitflow release branch into the develop branch is also required. This ensures that any fixes made to the release after the initial branching make it back into development. The Gitflow release branch is made from the develop branch and gets merged into both master and develop when finished.


2 Answers

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.

like image 54
sybozz Avatar answered Sep 18 '22 20:09

sybozz


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 ;)

like image 33
Luboš Turek Avatar answered Sep 19 '22 20:09

Luboš Turek