-1

enter image description here

I got this screen. I have 2 queries first, if you get this screen then how I can go back to the normal git prompt? 2nd how this error will be removed??

Tamanna -
  • 41
  • 5
  • 1
    You hit the most common question on SO : [How do I exit the Vim editor ?](https://stackoverflow.com/questions/11828270/how-do-i-exit-the-vim-editor) !!! :) – LeGEC Jan 12 '21 at 07:45

1 Answers1

0

This is not an error. It's asking for a commit message. To enter a message on the first line, type i to go into insert mode, enter some text, hit escape, then type :x and enter.

You can bypass the prompt for a commit message by using the -m flag, as in git commit -m 'changed some code'.

This explains what a commit is, and this explains how to change your configuration to use a different editor (that's Vim; you might want to use nano or something else).

Zac Anger
  • 6,983
  • 2
  • 15
  • 42