How to configure text editor for git

-2

I'm trying to set up the git editor for sublime, but this one is giving error, does anyone know how to do this correctly? I was trying something like this. git config --global core.editor "subl -w"

    
asked by anonymous 22.01.2017 / 01:06

2 answers

1

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

Font

Note: If sublime has not been added to your environment variables, you need to enter the full path to the application instead of just subl . Example:

git config --global core.editor "'C:/Program Files/Sublime Text 2/sublime_text.exe' -n -w"

    
22.01.2017 / 01:40
0

Sometimes you also need to enter the email and the name of the commit author. See below:

git config --global user.email "[email protected]"

git config --global user.name "seu nome"

There the sublime works normally.

    
20.01.2018 / 05:25