Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Simple wrapper to launch CygWin Git from windows applications. I use it with Sublime Text Git plugin (so I don't have to maintain .gitconfig, ssh keys, etc both for cygwin and git-bash)

The PATH export is there to permit launching without -l which is slow especially if, like me, you have lots of customizations in your .bashrc.

@echo off
C:\usr\cygwin64\bin\bash.exe -c 'export PATH="/bin:/usr/bin"; cd "%cd%"; git %*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.