0

While using GIT on the console and cherry picking this editor appeared. And I don't know how to apply/send the changes and move on

Git screen

max630
  • 8,762
  • 3
  • 30
  • 55
user1869935
  • 717
  • 2
  • 10
  • 23

3 Answers3

1

To save changes and quit, type :wq

Vim and Vi have different modes you can edit in. This allows users to use the main part of the keyboard for shortcuts ;)

If you are struggling to make changes in the first place, you have to enter insert mode by pressing i, then make your changes. You then have to go back to command mode by pressing Esc, then you can save and quit with :wq.

I agree with the other answers that you should use a different editor, unless you want to commit to learning Vim. Vim is great for learning to edit code super efficiently, but it's quite tricky to get your head around at first.

lochsh
  • 366
  • 1
  • 12
0

nano is another user friendly editor . Unfortunately, nano does not come with the Windows version of Git.

You need to install nano.

Before making your first commit, try running:

nano

in the terminal. The result should be a simple editor with instructions at the bottom of the screen; close/quit with ctrl-X. If that worked.

git config --global core.editor nano

will configure Git to use the nano editor. The commands to use the text editor (like copy, paste, quit, etc.) will be shown on the bottom of the screen

Neetika
  • 41,966
  • 1
  • 11
  • 7
-1

This is a editor which git will launch according your default editor configuration. Commonly, it is determined by your EDITOR environment variables, or configured by the the following command

sudo update-alternatives --config editor

You can do what I mentioned above to check what this editor is, and set your favorite editor to substitute it. After you change your default editor configuration, you can avoid this editor be launched again.

gzh
  • 3,507
  • 2
  • 19
  • 23
  • he has windows, it's visible from the screenshot – max630 Mar 14 '16 at 20:58
  • @max630 I know he has windows, but I also notice the*MinGW64* on title bar, which means he is using a unix-like shell environment on windows. – gzh Mar 14 '16 at 22:09
  • But it definitely does not have sudo and most probably no update-alternatives as well – max630 Mar 15 '16 at 06:12