简体   繁体   中英

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

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

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