How to set sublime text 3 as a default editor in git

1.8k Views Asked by At

I am having problems with setting sublime 3 as my default editor in git. I found some solutions on stackoverflow but I couldn't do it for some reason. Can anyone help me with it from the start to the end. Should I set any environment variables in order to make it work ? Thanks

1

There are 1 best solutions below

5
On

this is taken from the github help page:

git config --global core.editor "subl -n -w"

https://help.github.com/articles/associating-text-editors-with-git/

(also look at this answer to a similar question https://stackoverflow.com/a/25255676/2371600)