Skip to content

Instantly share code, notes, and snippets.

@jsnshrmn
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsnshrmn/3dd5828473fe4462ec2e to your computer and use it in GitHub Desktop.
Save jsnshrmn/3dd5828473fe4462ec2e to your computer and use it in GitHub Desktop.
Making git + mingw play nice

setting up MinGW

download and install mingw (run as administrator)

http://sourceforge.net/projects/mingw/files/latest/download?source=files

  1. Install for all users
  2. select mingw-developer-toolkit
  3. Apply changes

Download mintty for msys

https://code.google.com/p/mintty/downloads/list

and extract to mingw: C:\MinGW\msys\1.0\bin\

Make a shortcut

Create a shortcut called Terminal (or whatever you like) in:

%APPDATA%\Microsoft\Windows\Start Menu\Programs
Target:   C:\MinGW\msys\1.0\msys.bat -mintty
Start in: C:\MinGW\msys\1.0

Download Git SCM

https://msysgit.github.io/

Install Git

  1. Uncheck all components except Use a trutype font
  2. Use Git from git bash only
  3. use openssh
  4. checkout windows style, commit unix style

Get the 'make work good' sauce

Open git bash

cd /C/MinGW
git init
git remote add origin https://github.com/OULibraries/MinGW.git
git fetch
git checkout --track origin/master

Close git bash

Open terminal. It will do some configuration and ask you to close out. Open terminal again, and you should have a nice shell that fires up an ssh agent and has your windows user profile mounted to /home/username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment