gpt4 book ai didi

git - 你如何在提示符 "Please enter a commit message to explain why this merge is necessary."中止 git merge

转载 作者:太空狗 更新时间:2023-10-29 14:28:56 26 4
gpt4 key购买 nike

就在 pull 之前,我运行了 git reset HEAD --hard。然后我 git pulled 并收到消息

Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream...

是否可以从文本编辑器或在 these instructions 之后输入 merge 消息后发出 merge --abort还是必须在 merge 后撤消 merge ?

我的想法:关闭终端,重新打开 MINGW,然后尝试 merge --abort。这会使我的本地存储库损坏吗?

最佳答案

通常,当 git 要求您编辑文本文件作为某些操作的一部分时,您可以通过保存一个空文本文件来中止该操作。这适用于提交消息以及例如 git rebase -i

关于git - 你如何在提示符 "Please enter a commit message to explain why this merge is necessary."中止 git merge,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48578095/

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