xin buxu1
xin buxu1

Reputation: 407

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

Upvotes: 4

Views: 2475

Answers (1)

Ross
Ross

Reputation: 2179

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

Upvotes: 8

Related Questions