首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何修复"Unable to unlink old *:No to file or directory"?

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

Stack Overflow用户
提问于 2018-12-13 02:52:41
回答 1查看 653关注 0票数 5

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

代码语言:javascript
运行
复制
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来压缩最后两个提交:

代码语言:javascript
运行
复制
git rebase -i HEAD~3

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

然而,我得到了这个错误:

代码语言:javascript
运行
复制
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

为什么我会得到这个错误,我如何修复它?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-12 21:11:59

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53749567

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档