Privacy Policy
© 2025 linux101.dev

Git: Setting a Custom Text Editor

Git uses your system's default text editor for tasks like writing commit messages and interactive rebasing. You can configure a different editor if you prefer.

Configuration

Set Vim as editor

git config --global core.editor "vim"

Sets Vim as your default Git editor globally for all projects.

Set Nano as editor

git config --global core.editor "nano"

Sets Nano as your default Git editor globally.