To handle the following problem use the following steps.

  1. press "i"
  2. write your merge message
  3. press "esc"
  4. write ":wq"
  5. then press enter