Skip to content

Instantly share code, notes, and snippets.

@JohnathanMarkSmith
Forked from S3ak/Git commit editior
Created February 21, 2023 15:32
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 JohnathanMarkSmith/31f7b3715f364cd56a32cdbc2beeaff0 to your computer and use it in GitHub Desktop.
Save JohnathanMarkSmith/31f7b3715f364cd56a32cdbc2beeaff0 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
@JohnathanMarkSmith
Copy link
Author

Adding notes

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