search

Home  >  Q&A  >  body text

sublime-text3 - When using git commit to submit a version without adding -m, you will enter vim. How to write the submission instructions and then exit?

If you enter git commit '.' in the command line without adding -m, a window will automatically appear for you to fill in the submission instructions. What should I do after entering it?

The following are the steps, thank you @fudali

1. Press the keyboard i and something will change at the bottom

2. At this time, the cursor is at the top, enter the description 'comment' to be submitted, um Esc, then enter :, and the cursor reaches the bottom

3. After entering wq, press Enter and you will return to the original command line interface

PHPzPHPz2807 days ago812

reply all(2)I'll reply

  • 某草草

    某草草2017-05-02 09:37:58

    Press i and then write, press esc after writing, and then enter: wq

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:37:58

    try press [Esc] key and type ZZ

    reply
    0
  • Cancelreply