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.)
Asked
Active
Viewed 933 times
0

Software Dev
- 910
- 3
- 10
- 27
1 Answers
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