git - 从错误的提交消息中恢复 [Windows 上的 git bash]?

标签 git git-bash

enter image description here

当我写消息时,enter按钮突然按下,我该如何退出?

我尝试过Q,但没有结果。

最佳答案

您需要关闭消息,如果您忘记这样做,则需要输入以下内容:

CTRL + C

enter image description here


另一种选择是使用CTRL + D,但这会显示错误消息。

enter image description here

关于git - 从错误的提交消息中恢复 [Windows 上的 git bash]?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35826065/

相关文章:

windows - 从 GitBash 运行 TASKKILL 时遇到问题

git - 为什么 Jenkins 无法 git init 并返回状态码 1?

git - 如何在 git diff 输出中正确显示重音

git - 如何在 Git 中的提交范围内获取在存储库中修改的文件的唯一列表?

git - 安装 Git for Windows 时 R studio 不会启动

git - 为什么TortoiseGit在提交消息编辑后运行prepare-commit-msg?

node.js - Git Bash 找不到 node.js,即使它在我的路径中并且可以在 Powershell 中运行

windows - Mysysgit "(END)"显示,我该如何继续?

git - 致命: bad numeric config value 'white' for 'color.status' : invalid unit

angularjs - 在 Git for Windows Bash 中,如何安装 "get-apt"和 "sudo"以及所有这些基本命令?