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"
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"
git config --global core.editor "subl -n -w"
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"
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.