Shell/Bash: git change default editor Example

By

Shell/Bash Example: This is the "git change default editor" Example. compiled from many sources on the internet by SimpleTutorials.org

set git editor

$ git config --global core.editor vim

git change default editor

git config --global core.editor vim

git commit --amend choose editor

git config --global core.editor "/bin/nano"

git configure default editor

# Set Emacs as the default editor
$ git config --global core.editor emacs   
# Set Visual Studio Code as the default editor
$ git config --global core.editor code


* Summary: This "git change default editor" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others