致命:无法打开文件.git / rebase-merge /完成阅读:没有这样的文件或目录 [英] fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory

查看:2869
本文介绍了致命:无法打开文件.git / rebase-merge /完成阅读:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算做一个rebase来删除我的上次提交,但我不想结束,所以我退出了。 (我意识到这可能不是最好的方式去做,但它已完成)我想我做错了,因为我得到的错误:致命:无法打开文件.git / rebase-merge /完成阅读:每次运行 git status 时都没有这样的文件或目录。我如何摆脱这个错误,以便我可以继续提交?我可以删除文件吗?如果我可以删除它,我该怎么做?尝试做一个 git rebase - > -abort 。确保您隐藏提交首先进行任何未提交的更改,否则您将无法挽回地失去它们。


I was going to do a rebase to delete my last commit but I didn't want to finish so I exited. (I realize this probably was not the best way to go about it, but it's done) I guess I did it wrong because I am getting the error: fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory every time I run git status. How do I get rid of this error so I can continue making commits? Can I just delete the file? If I can delete it, how would I do that?

解决方案

Try to do a git rebase --abort. Make sure you stash or commit any uncommitted changes first, or you will lose them irrevocably.

这篇关于致命:无法打开文件.git / rebase-merge /完成阅读:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆