简体   繁体   中英

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

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

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 )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM