【问题标题】:Git rebase error: No such file or directoryGit rebase 错误:没有这样的文件或目录
【发布时间】:2019-03-21 13:37:27
【问题描述】:

我打算做一个变基来更新我的最后一次提交,但我不想完成所以我退出了。 (我意识到这可能不是最好的方法,但它已经完成了)我想我做错了,因为我收到了错误:

su@sun-PC MINGW64 /e/learninggit/git_learning (|REBASE-m)
$ git rebase --continue
error: could not read '.git/rebase-merge/head-name': No such file or directory

如何消除此错误以便继续提交? 我使用git rebase --abort 命令无效。

【问题讨论】:

标签: git


【解决方案1】:

git rebase --quit 将退出 rebase 模式,同时保持工作树不变

【讨论】:

    猜你喜欢
    • 2013-06-12
    • 2023-04-11
    • 2021-10-31
    • 1970-01-01
    • 2021-11-22
    • 2021-04-29
    • 2013-08-08
    • 2013-11-04
    • 2012-02-18
    相关资源
    最近更新 更多