Installing Git-flow in Windows


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://github.com/nvie/gitflow.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!

15 thoughts on “Installing Git-flow in Windows

  1. SanCappello

    Nice guide, thank you! Two small details that i needed to add to get it work properly:
    1. git clone –recursive git://github.com/nvie/gitflow.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.

    Enjoy!

  2. 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
    (x86)\Git”
    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
    t-flow
    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!

  3. Sarah

    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
    n\git-flow
    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”

  4. xinyustudio

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

  5. Pingback: Recent hot posts | Xinyustudio

  6. 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.

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

    git clone git://github.com/nvie/gitflow.git –recursive

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

  8. Pingback: Automatizando fluxo do git ‹ 100loop.com

  9. Ram Shinde

    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.

  10. Pingback: Having Trouble Installing GitFlow | FYTRO SPORTS

Leave a comment