0

I'm using Windows Terminal, when I run git commit --amend, the Nano editor is displayed. How do I change it to use Vim instead? (With Git Bash, it uses Vim.)

Alon
  • 616
  • 1
  • 7
  • 18

1 Answers1

1

Set in your .gitconfig:

[core]
        editor = 'vi'

You can also set through

git config --global core.editor vi
Maroun
  • 91,013
  • 29
  • 181
  • 233