在我执行 git commit 后,它会提示我发表评论,以便我可以推送到 bitbucket,通常我按 alt+x,然后退出,然后 git push。但出于某种原因,它并没有让我退出。
committed new changes to bitbucket
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'.
Changes to be committed:
new file: blocks/folder-navigation.block
new file: blocks/index-album.block
....
最佳答案
根据您的描述,编辑器看起来像是 vim。
这个控制台只是告诉你为你想要提交的提交写一些消息,它是强制性的。
i
然后你会进入 -- INTER --
模式,现在你可以写你的评论了。 esc
键入键盘,您将进入命令模式。 (见控制台底部):w
保存更改然后按 enter
key :q
然后按 enter
key 关于git - git commit 后无法通过评论部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32262264/