Git 如何退出 git log 和 git commit 状态 木禾同学 2023-12-27 657 阅读1分钟 Git 是由 Linux 创始人开发的版本控制工具,而 vim 编辑器在与 Linux 同样的使用方式方面也有相似之处。 git log 的退出 英文模式下输入 q ,回车。 git commit 的退出 保存并退出: 按 Esc 键退出编辑模式,英文模式下输入 :wq ,回车。 按 Esc 键退出编辑模式,大写英文模式下输入 ZZ ,回车。 不保存退出: 按 Esc 键退出编辑模式,英文模式下输入 :q! ,回车。 按 Esc 键退出编辑模式,英文模式下输入 :qa! ,回车。