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 111 times
0
Alon
- 616
- 1
- 7
- 18
1 Answers
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