小编Aur*_*ang的帖子

如何解决“无法取消链接旧 *:没有这样的文件或目录”?

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

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
Run Code Online (Sandbox Code Playgroud)

现在我试图用来git rebase -i压缩最后两个提交:

git rebase -i HEAD~3

pick ...
pick ....
squash ...
Run Code Online (Sandbox Code Playgroud)

但是,我收到此错误:

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 …
Run Code Online (Sandbox Code Playgroud)

git git-rebase git-squash

5
推荐指数
1
解决办法
618
查看次数

标签 统计

git ×1

git-rebase ×1

git-squash ×1