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.)

Software Dev
  • 910
  • 3
  • 10
  • 27

1 Answers1

1

Set in your .gitconfig:

[core]
        editor = 'vi'

You can also set through

git config --global core.editor vi
Maroun
  • 94,125
  • 30
  • 188
  • 241