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!

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!
Your comments are very useful! Thanks!
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!
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”
This is clear that you did not run the program as administrator. Right click and run the “cmd.exe” by clicking “Run as administrator.”
where is the cmd.exe
Pingback: Recent hot posts | Xinyustudio
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.
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).
Worked for me with the remark from SanCappello en Dennis, thanks to all.
Where do I clone the gitflow to? What dir?
Pingback: Automatizando fluxo do git ‹ 100loop.com
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.
Pingback: Having Trouble Installing GitFlow | FYTRO SPORTS
It was very helpful for me @Dennis Solis and @Kara