Skip to content

Instantly share code, notes, and snippets.

@nickautomatic
Last active September 8, 2016 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nickautomatic/6231007 to your computer and use it in GitHub Desktop.
Save nickautomatic/6231007 to your computer and use it in GitHub Desktop.
Use mintty as the default console for Git on Windows
  • Add mintty.exe to Git\bin
  • Create shortcut in Git directory with the following target: "C:\Program Files\Git\bin\mintty.exe" --title "Git mintty" --icon "etc\git.ico" -c "%HOMEDRIVE%%HOMEPATH%\.minttyrc" --icon "etc\git.ico" --exec "bin\sh.exe" --login -i ('Starts in' should be set to "C:\Program Files\Git" in order for relative paths, eg. "etc\git.ico", to work)
  • In order to get colours working, add the following to .gitconfig:
    [color]
      status = always
      diff = always
      log = always
    

nb. this final step can cause problems elsewhere (eg. with TortoiseGit's Diff tool), so may not be ideal.

cf. http://code.google.com/p/mintty/issues/detail?id=201

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