Skip to content

Sun Jul 07 2013

what, no getopt?

Every time github for windows updates, I lose git-flow. The portable git that is extracted with the install doesn't include getopt.exe, which is needed to install and use git-flow on windows.

start with the git-flow repository

clone the git-flow repository

when you cd to contrib and run msysgit-install.cmd from the cmd line, it says

MsysGit installation directory not found. Try to give the directory name on the command line: msysgit-install "C:\Program Files (x86)\Git"

So now you have to find the install directory and try to add that to the msysgit-install cmd line. This time, in my case it was

> msysgit-install "C:\Users\Chris\AppData\Local\GitHub\PortableGit_015aa71ef18c047ce8509ffb2f9e4bb0e3e73f13"
> Installing gitflow into "C:\Users\Chris\AppData\Local\GitHub\PortableGit_015aa71ef18c047ce8509ffb2f9e4bb0e3e73f13"...

But wait there's more!

Now it tells us that getopt.exe is not found. Go to the git-flow repository page for manual install instructions which pretty much outlines the same steps I'm typing right now, so...moving right along

follow the links to getopt.exe and libintl3 and copy them to your portablegit bin directory. now when you run msysgit-install with the directory parameter, git flow installs. w00t!

💾 May the source be with you. v3.2.419