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
@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