Skip to content

Instantly share code, notes, and snippets.

@ilyar
Created April 22, 2014 19:16
Show Gist options
  • 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
@EngEryx
Copy link

EngEryx commented May 14, 2024

If any is reading this, still, Git SCM for windows now ships with git flow. Just git flow on your terminal and you're ready to go!

@arman-async
Copy link

If any is reading this, still, Git SCM for windows now ships with git flow. Just git flow on your terminal and you're ready to go!

Yes, it works properly.

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