Skip to content

Instantly share code, notes, and snippets.

@NateWeiler
Created December 27, 2020 14:04
Show Gist options
  • Save NateWeiler/cda9a99a1e319d55587db4652363eeae to your computer and use it in GitHub Desktop.
Save NateWeiler/cda9a99a1e319d55587db4652363eeae 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 https://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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment