Ubuntu git提交出现这个界面怎么退出
黄舟
黄舟 2017-04-28 09:05:50
0
2
706

我提交的出现这个界面,怎么退出啊,按esc键 退出不了

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
给我你的怀抱

This is a page for editing and submission using nano. The exit method is:

Ctrl + X然后输入y Then press Enter to exit

If you want to change the default editor to something else:

Set core.editor in GITconfiguration: git config --global core.editor "vim"

Reference:

http://stackoverflow.com/questions/2596805/how-do-i-make-git-use-the-editor-of-my-choice-for-commits

滿天的星座

I tried it, but it didn’t work. Then Baidu went to other methods and posted them:

    1. Press the ESC key to make sure you are not in edit mode and type
      :wq

    1. Esc key to make sure you exit insert mode, then: wq (colon W Q) or ZZ (Shift Z Offset-Z).

    2. I can provide you two links that can help you with vim: instead of telling you how you can execute (wq esc) a quick reference card is provided in HTML a quick reference card is provided in PDF format in multiple languages, for printing CodeGo.net, Fold Optimized to Put in Your Desk Drawer However, the best way to learn VIM is not to work on it, but as a regular editor for your daily work. If you're not planning on switching to VIM, it's crap to keep it's original purpose. In this case, go ahead and set up your favorite editor to use Git.

    3. The shortcut for
    4. Save and Exit would be
      :x
      If you have multiple files open, you may want to do a
      :xa

    5. Press i or a to get the selection to enter insert mode, press a few ESC to get out of insert mode, otherwise you may accidentally hit any other mode to save, :wq, :x or ZZ to exit without saving, :q! or ZQ to edit : Reload a file and undo all changes you've made... Press ESC a few times and type :e!.

    6. :q! will force an unconditional exit without saving

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template