gpt4 book ai didi

git - git commit 后无法通过评论部分?

转载 作者:行者123 更新时间:2023-12-04 00:07:26 26 4
gpt4 key购买 nike

在我执行 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

  • You can see the screenshot here for your reference
  • 您现在可以通过写信退出 :q然后按 enter key

  • you can see the screenshot here for your reference
  • 欢呼!现在您返回到主控制台。
  • 关于git - git commit 后无法通过评论部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32262264/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com