git — 'flow' Is Not a git Command

Using git as your version control system comes with different ways to structure your repository. A popular approach using git successfully in your project is the git flow branching model from Vincent Driessen.

When running into the error git: 'flow' is not a git command., you don’t have git flow installed on your machine. Read on to install it on your system.

git Series Overview

  1. 'flow' Is Not a git Command

Installing git flow

Depending on your operating system, you can install it using a package manager.

macOS

MacOS users can install git flow using the Homebrew package manager:

brew install git-flow  

As an alternative, you may install the AVH edition of the git flow providing functionality not available in the original git flow:

brew install git-flow-avh  

👉 Hint: the AVH edition is what I install on my machine

Linux

On Linux, use your available package manager to install git flow. On Ubuntu/Debian, install it with apt:

apt-get install git-flow  

Windows

On Windows, you may need cygwin to use git flow. Depending on your setup, you can also use the Windows Subsystem for Linux (Windows 10 and up) to use git with git flow.

To install git flow on Windows (cygwin) use the following command:

wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash  

Once the installation completed, you may need to start a new terminal window activating git flow support in git. Enjoy!


Mentioned Resources

Explore the Library

Find interesting tutorials and solutions for your problems.