1

I am currently trying to squash my last commit using interactive rebase. However, when I type git rebase -i HEAD^, Atom is opened.

Since I want to do this from Vim, how do I prevent Atom from opening so that I can do rebase from the terminal window?

Todd Drinkwater
  • 379
  • 6
  • 17

1 Answers1

2

pleas try git config --global core.editor "vim" This will set Vim as your git default editor

you can see more detail here How do I make Git use the editor of my choice for commits?

  • In addition: if you only want to change it for rebase you can use `git config --global sequence.editor "vim"` – Ripp_ Dec 17 '18 at 13:32