gpt4 book ai didi

git - 如何修复 "Unable to unlink old *: No such file or directory"?

转载 作者:行者123 更新时间:2023-12-03 17:14:35 25 4
gpt4 key购买 nike

我从远程存储库克隆了一个分支:

git clone -b feature/feature1 http://.....
git status
On branch feature/feature1
Your branch is up to date with 'origin/feature/feature1'
nothing to commit, working tree is clean

现在我正在尝试使用 git rebase -i压缩最后两个提交:
git rebase -i HEAD~3

pick ...
pick ....
squash ...

但是,我收到此错误:
error: unable to unlink old 'file1': No such file or directory
error: unable to unlink old 'file2': No such file or directory
error: unable to unlink old 'file3': No such file or directory
hint: Could not execute the todo command
hint:
hint: squash 3b6cabf2541e333d614c3cd5dbbb82a37037cc14 some commit
hint:
hint: It has been rescheduled; To edit the command before continuing, please
hint: edit the todo list first:
hint:
hint: git rebase --edit-todo
hint: git rebase --continue
Could not apply 3b6cabf... some commit

为什么我会收到这个错误,我该如何解决?

最佳答案

看起来像 git rebase --continue是你想要的。

关于git - 如何修复 "Unable to unlink old *: No such file or directory"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53749567/

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