10
Merge branch 'develop' into peakfront

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

"To get updated code in my branch"


-- INSERT --

I have typed this, but I cant find a way to save this and exit, so that I could work on terminal. What command am I to use here?

sudo bangbang
  • 23,736
  • 11
  • 71
  • 75
kavin Rakshan
  • 179
  • 2
  • 2
  • 7
  • 5
    Possible duplicate of [How to exit the Vim editor?](http://stackoverflow.com/questions/11828270/how-to-exit-the-vim-editor) – Scott Weldon Dec 01 '16 at 01:37

2 Answers2

32

Press esc, then colon (:) and then enter on keyboard wq to save and exit.

If you wish to just quit, without saving, write q without w

prabodhprakash
  • 3,675
  • 24
  • 44
1

Steps:

  1. Press ESC
  2. Write :w
  3. Write :q

Your text has been saved :)