这个问题在这里已有答案:
在$ git之后添加。暂存和提交弹出此消息。是什么让它发生以及如何解决它的问题?
在bash中
No commits yet
# new file: README.md
# new file: app.js
# new file: config/auth.js
# new file: config/keys.js
来自bash的链接
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
#
# Initial commit
#
# Changes to be committed:
# new file: .gitignore
# new file: README.md
# new file: app.js
你并没有陷入Bash,而是陷入了Vim。您可以通过输入:q!
退出程序而无需提交,如果您想要使用输入的消息完成提交,则可以随时关闭程序并通过键入:wq
来保存消息。
我建议你使用qazxsw poi来使用更容易使用的文本编辑器qazxsw poi。您当然可以使用您想要的任何其他兼容文本编辑器。