Git - 如何关闭提交编辑器? [英] Git - How to close commit editor?
本文介绍了Git - 如何关闭提交编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不熟悉git并从PDF中学习。
我刚刚执行了一个 $ git commit
命令,它会打开一个新的编辑器。但我试图关闭这个新的提交编辑器。这个怎么做?我在windows上使用git。
I'm new to git and learning from a PDF.
I just executed a command $ git commit
and it opens a new editor. But I'm trying to close that new commit editor. How to do this? I'm using git on windows.
推荐答案
在编辑器中保存文件。如果是Emacs: CTRL X CTRL S 进行保存,则 CTRL X CTRL C 退出或如果是vi:: w q < kbd>
Save the file in the editor. If it's Emacs: CTRLX CTRLS to save then CTRLX CTRLC to quit or if it's vi: :wq
这篇关于Git - 如何关闭提交编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文