Installing Git-flow in Windows

26 Mar

git-flow is a bunch of Git extensions that makes version control extremely easy. Below is a concise procedure to install it on Windows platform.

1. Download getopt.exe from util-linux package, download the bin file only, as highlighted below:

2. Copy this file to “C:\Program Files (x86)\Git\bin” if you use x64 OS, or
   “C:\Program Files\Git\bin” if you run x86 OS.

3. Clone the git-flow sources from GitHub

$ git clone –recursive git://
$ cd gitflow

4. Run the below cmd in windows command window

cd gitflow/contrib/
msysgit-install.cmd "C:\Program Files (x86)\Git"

Now run “git flow” in git bash, success!


Posted by on March 26, 2012 in Programming


15 responses to “Installing Git-flow in Windows

  1. SanCappello

    January 26, 2013 at 5:37 pm

    Nice guide, thank you! Two small details that i needed to add to get it work properly:
    1. git clone –recursive git:// worked for me, with — instead of – ;
    2. as well as getopt.exe from Binaries, i needed also libintl3.dll from Dependencies zip , just put it in the same folder.


  2. xinyustudio

    January 27, 2013 at 1:38 am

    Your comments are very useful! Thanks!

  3. Dennis Solis

    April 27, 2013 at 6:20 am

    A couple of changes I would recommend.

    1. Download the binaries util-linux package (see below) and extract ONLY the getopt.exe program from the downloaded zip file.

    2. Copy the program getopt.exe to “C:\Program Files (x86)\Git\bin” if you use x64 OS, or “C:\Program Files\Git\bin” if you run x86 OS.

    3. (was fine)

    4. Run the below cmd in a windows command windows. After you have completed the below cd command you could be the one of thefollowing directory:
    X64 OS = C:\Program Files (x86)\Git\bin\gitflow\contrib
    X86 OS = C:\Program Files\Git\bin\gitflow\contrib

    You will know the command worked if you receive the following output:
    C:\Program Files (x86)\Git\gitflow\contrib>msysgit-install.cmd “C:\Program Files
    Installing gitflow into “C:\Program Files (x86)\Git”…
    getopt.exe… Found
    Copying files…
    C:\Program Files (x86)\Git\gitflow\git-flow -> C:\Program Files (x86)\Git\bin\gi
    1 File(s) copied

    (At the time of this writing, 11 files are copied by the msysgit-install.cmd program.)

    Having said the above, this was the only article I found where the instructions actually worked! Thanks!

  4. Sarah

    July 2, 2013 at 5:53 pm

    I am getting this error, I dont know what to do. This is my first time to use this.😦

    c:\Program Files (x86)\Git\bin\gitflow\contrib>msysgit-install.cmd “C:\Program F
    iles (x86)\Git”
    Installing gitflow into “C:\Program Files (x86)\Git”…
    getopt.exe… Found
    Copying files…
    C:\Program Files (x86)\Git\bin\gitflow\git-flow -> C:\Program Files (x86)\Git\bi
    Access denied

    You should run this script with “Full Administrator” rights:
    – Right-click with Shift on the script from the Explorer
    – Select “Run as administrator”

  5. xinyustudio

    July 2, 2013 at 6:00 pm

    This is clear that you did not run the program as administrator. Right click and run the “cmd.exe” by clicking “Run as administrator.”

  6. pnganpi2012

    December 22, 2013 at 11:41 am

    where is the cmd.exe

  7. Otis

    April 16, 2014 at 10:09 am

    I’m amazed, I must say. Rarely do I encounter a blog that’s both equally educative and
    interesting, and without a doubt, you have hit the nail on the head.

    The problem is something too few people are speaking intelligently about.
    Now i’m very happy that I found this during my search for something relating to this.

  8. Randy Rice

    July 18, 2014 at 10:51 pm

    With git version 1.9.4 I had to use this syntax for step 3:

    git clone git:// –recursive

    (with the –recursive on the end of the command).

  9. Edwin

    September 11, 2014 at 7:46 pm

    Worked for me with the remark from SanCappello en Dennis, thanks to all.

  10. Pierce

    October 11, 2014 at 12:22 am

    Where do I clone the gitflow to? What dir?

  11. Ram Shinde

    February 4, 2015 at 3:17 pm

    Thanks A Lot !!
    This is the perfect article for installing Git Flow.
    In my case, it prompted me for installing dependency packages.
    So installed ( libintl3.dll and libiconv2.dll ) from the Dependencies packages (libintl and libiconv), into the same directory.

  12. tset

    May 6, 2015 at 10:46 pm

    It was very helpful for me @Dennis Solis and @Kara


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: