Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tangoabcdelta/87e6850a0bd6205b84e5a799e2c849a7 to your computer and use it in GitHub Desktop.
Save tangoabcdelta/87e6850a0bd6205b84e5a799e2c849a7 to your computer and use it in GitHub Desktop.
Change the default git editor from vim to nano
Change the default editor for git from vim to nano
# change the default editor from vim to nano
git config --global core.editor "nano"
or, alternatively, change the gitconfig
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment