Skip to content

Instantly share code, notes, and snippets.

@fmarkos
Forked from S3ak/Git commit editior
Created December 2, 2022 16:15
Show Gist options
  • Save fmarkos/472426f5e2086e72e8867b39306b8974 to your computer and use it in GitHub Desktop.
Save fmarkos/472426f5e2086e72e8867b39306b8974 to your computer and use it in GitHub Desktop.
How to set git commit editor to sublime
Method 1
git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w"
Method 2
git config --global core.editor "subl -n -w"
Method 3
$ echo 'alias subl="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment