How to fix git problem - error: unable to start editor 'emacs'?

2 points
Asked by:

My problem description:

When I make git pull I have an error:

error: unable to start editor 'emacs'

How can I fix it?

1 answers
7 points
Answered by:


You can fix this problem by setting vim editor as your default git editor. Most linux distro will have vim by default:

To set git editor to vim, we need to execute below command:

git config --global core.editor vim

You could also install emacs editor, but most prople prefered vim over vi and emacs.

0 comments Add comment
Hey 👋
Would you like to know what we do?
  • Dirask is online IT community for professionals and hobbyist to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.