Skip to main content

Working with Git and Git-Flow on Windows

To install Git-Flow on Windows

  1. Download the "Binaries Zip" file (util-linux-ng-2.14.1-bin.zip) from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm
    1. Extract util-linux-ng-2.14.1-bin.zip\bin\getopt.exe to "C:\Program Files (x86)\Git\bin"
  2. Download the "Dependencies Zip" file (util-linux-ng-2.14.1-dep.zip) from http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm
    1. Extract util-linux-ng-2.14.1-dep.zip\bin\libintl3.dll to "C:\Program Files (x86)\Git\bin"
  3. Run "git clone --recursive git://github.com/nvie/gitflow.git"
  4. cd into gitflow/contrib/
  5. Run msysgit-install.cmd "C:\Program Files (x86)\Git"
  6. Run "git flow" in a cmd window to make sure it worked
(adapted from http://xinyustudio.wordpress.com/2012/03/26/installing-git-flow-in-windows/)

Git Configuration


After installing Git, set up the configuration:

C:\> git config --global user.name "Your Name"
C:\> git config --global user.email "your_email@your-host.com"
C:\> git config --global core.autocrlf input
C:\> git config --global core.safecrlf true

If you don't want to type in your password every time you interact with the Git server, create a file called _netrc in your "home" folder (C:\Users\YourUserName) with the following contents:

machine your-git-server-url.com
        login YourGitLogin
        password YourGitPassword

Source Tree


Source Tree is an excellent free visual tool for working with Git on Windows (it's also available on OSX).

Comments