Skip to content

Instantly share code, notes, and snippets.

@ilyar
Created April 22, 2014 19:16
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save ilyar/11190988 to your computer and use it in GitHub Desktop.
Save ilyar/11190988 to your computer and use it in GitHub Desktop.
Install gitflow on Windows

Install gitflow on Windows

Download and install Git from MSysGit or Git SCM. Download and install getopt.exe from the util-linux package into C:\Program Files\Git\bin. (Only getopt.exe, the others util-linux files are not used). Also install libintl3.dll and libiconv2.dll from the Dependencies packages (libintl and libiconv), into the same directory.

Suppose that Git is installed in the folder c:\bin\git and GnuWin32 in the folder c:\bin\GnuWin32.

Clone the git-flow sources from GitHub:

$ git clone --recursive git://github.com/nvie/gitflow.git

Run the msysgit-install script from a command-line prompt (you may have to run it with "Full Administrator" rights if you installed msysgit with its installer, and ensure you're running from a Windows command prompt, not MINGW):

cd gitflow
cp c:\bin\GnuWin32\bin\getopt.exe c:\bin\git\bin\getopt.exe
cp c:\bin\GnuWin32\bin\libintl3.dll c:\bin\git\bin\libintl3.dll
cp c:\bin\GnuWin32\bin\libiconv2.dll c:\bin\git\bin\libiconv2.dll
contrib\msysgit-install.cmd c:\bin\git

In Git bash create a symbolic link for git-flow so that you can actually use the $ git flow command from any location.

ln -s /C/gitflow/git-flow git-flow
@Abouhassane
Copy link

thanks a lot man, this has been a great help 👍

@MrCsabaToth
Copy link

I installed Git SCM but that does not install MySYSGit. MySYSGit is superseded now. We cannot install git flow for MINGW???

@lazbog
Copy link

lazbog commented May 29, 2020

I think the guide is a bit confusing.
What I have done to get it worked on Windows 10 with Git SCM installed.

  1. Downloaded binaries and dependencies. Careful - direct links to download.
  2. Extracted getopt.exe from binaries and libintl3.dll, libiconv2.dll from dependencies to bin folder inside Git installation directory. In my case it is C:\Program Files\Git\bin
  3. Cloned repo git clone --recursive git://github.com/nvie/gitflow.git (in my case to C:\ ).
  4. Ran cmd as Administrator inside folder C:\gitflow\contrib
  5. Executed .\msysgit-install.cmd "C:\Program Files\Git"

That's it. @MrCsabaToth it works with MINGW

@ReinsBrain
Copy link

@lazbog - well that was easy - thanks :)

@agoulziprod
Copy link

Many thanks @lazbog , it worked

@kuriel-trivu
Copy link

The most easy way to install git-flow on Windows (if you already have NPM)

https://www.npmjs.com/package/git-flow

npm i -g git-flow

End.

@Neosoulink
Copy link

Neosoulink commented Mar 12, 2021

Yes, use NPM (if you have it) like on Kuriel-trivu's comment. It's really easier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment