0

I'm new to git still learning. I was merging a branch from the remote. But i stuck with this prompt.

I want to know How to edit this? How to save it? And most importantly how to close it.?

enter image description here

I try 'q' to exit , space to 'scroll' but it doesn't work.

Thanks!

Hemant Parihar
  • 732
  • 1
  • 6
  • 19

1 Answers1

0

Git bash uses Vi/Vim for modifying commit messages:

  • dd deletes a line of text
  • i enters insert mode to enter text.
  • ESC to exit edit mode.
  • :wq will write (save) then close.

Here's a cheat sheet

J. Titus
  • 9,535
  • 1
  • 32
  • 45
  • 1
    Well, to be precise Git can use various editors not only Vi/Vim. This is [configurable](http://stackoverflow.com/questions/2596805/how-do-i-make-git-use-the-editor-of-my-choice-for-commits) – JustMe Feb 27 '16 at 13:29
  • @JustMe Well there's something I actually wasn't aware of. Thanks for the tip. – J. Titus Feb 27 '16 at 13:31