gpt4 book ai didi

git - 尝试撤消 rebase 时卡住

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

在执行两个 Git 命令撤消 rebase 后,我遇到了一些错误。

git checkout topic 
git reset --hard origin/topic

谁能解释这是什么以及如何解决?我不想再次丢失我的代码。

git status 告诉我这个

    Last command done (1 command done):
pick c326b089c8 Revert "Conflicts removed from master, OffscreenCanvas changes ready for merge" Will rebase branch and resolve conflicts. This reverts commit 7357f2e5444bed9e93e1380331464a5332319d09.
Next command to do (1 remaining command):
pick 90bec670b4 Changes reverted in conflicting files. OffscreenCanvas API ready to be merged.
(use "git rebase --edit-todo" to view and edit)
You are currently editing a commit while rebasing branch 'testing' on '1b0b63edf9'.
(use "git commit --amend" to amend the current commit)
(use "git rebase --continue" once you are satisfied with your changes)

nothing to commit, working tree clean

提前致谢!

最佳答案

git rebase --abort 将中止 rebase 操作并将您的存储库恢复到开始 rebase 之前的状态。自从你开始 rebase 以来你所做的一切都将丢失。

关于git - 尝试撤消 rebase 时卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47037433/

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