# change the default editor from vim to nano
git config --global core.editor "nano"
# or, alternatively, change the `gitconfig`
# go to `~/.gitconfig`
```git
[core]
editor = nano
# this change can also be made in a per-repo-basis
- If
gitconfig
file inside the.git
folder is changed, then this change can also be made in a per-repo-basis