Skip to content

Instantly share code, notes, and snippets.

@versedi
Created August 5, 2015 13:38
Show Gist options
  • Save versedi/d0a1f6635e300a7570fe to your computer and use it in GitHub Desktop.
Save versedi/d0a1f6635e300a7570fe to your computer and use it in GitHub Desktop.
Cygwin + git + Sublime Text 3 commit message
#Remember to have environment variable in Windows set also to /usr/local/bin
#File /usr/local/bin/subl with chmod +x, content:
#!/bin/bash
/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe `cygpath -w $PWD/.git/COMMIT_EDITMSG` -w
#File ~/.gitconfig
[core]
...
editor = subl -w
...
@cmalard
Copy link

cmalard commented Sep 30, 2016

Thanks for the start, I added full support to files and git (amend, tag, ...)
https://gist.github.com/cmalard/16c58869319c9a88473ec08cc7989c6b

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