【问题标题】:What is the way to save and quit editing in Windows CMDWindows CMD中保存和退出编辑的方法是什么
【发布时间】:2016-03-04 14:51:01
【问题描述】:

输入不知道如何保存退出的消息后尝试使用git commit -a时,卡在windows cmd中。

【问题讨论】:

  • “保存”是什么意思?你要么提交,要么不提交,没有办法“保存”

标签: windows git cmd


【解决方案1】:

输入消息后,您必须按 Esc(用于退出插入模式),然后

:wq

这里已经讨论过了:VIM for Windows - What do I type to save and exit from a file?

【讨论】:

    【解决方案2】:

    或许,如果你在使用 vim 编写提交信息时遇到了一些困难,你应该更多地按照 windows 用户的习惯配置一个编辑器: https://stackoverflow.com/a/773973/717372

    【讨论】:

      猜你喜欢
      • 2011-04-09
      • 1970-01-01
      • 2013-04-21
      • 2011-06-10
      • 1970-01-01
      • 2021-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多