Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove sublime editor from git

I added sublime to the default git editor. But I got error msg like this:

ubl -n -w: subl: command not found
error: There was a problem with the editor 'subl -n -w'.

I don't want to use sublime anymore, anyone knows how to remove sublime editor from git

like image 854
xin buxu1 Avatar asked Sep 01 '25 02:09

xin buxu1


1 Answers

You can change your default editor (to vi for example) with:

git config --global --add core.editor vi

where --global means you are changing the settings globally. You can also change the settings locally (--local) in the current repository and using the system (--system).

You can see what your current config is with git config -l.

Edit: If you just want to remove the editor instead of adding a new one, use:

git config --global --unset-all core.editor

like image 139
Ross Avatar answered Sep 02 '25 16:09

Ross