Git:git commit 提交时,提示Please enter the commit message for your changes......如何解决?

git add  "文件名”   从本地的工作区将修改的文件添加到暂存区

git commit   提交修改

进入另一个界面,提示如下:


# Please enter the commit message for your changes. Lines starting

# with '#' will be ignored, and an empty message aborts the commit.

#

# On branch master

# Your branch is up to date with 'origin/master'.

进入该页面后,有些懵了,不知如何操作,如何退出此页面。

这是因为git commit提交的时候,没有输入提交说明导致的。

当前界面输入:wq,回车,即可退出该页面

注意是冒号+wq(wq要小写)


退出后重新提交,git commit -m 后面添加上代码提交说明即可

git commit -m "代码提交说明"---代码提交说明可以任意写。

再回车就可以正常提交,不会报错了。

你可能感兴趣的:(Git:git commit 提交时,提示Please enter the commit message for your changes......如何解决?)