TortoiseGit恢复失败 - 无法恢复本地更改 [英] TortoiseGit revert failed - unable to revert local changes

查看:2037
本文介绍了TortoiseGit恢复失败 - 无法恢复本地更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在我的本地环境中进行一些修改时,例如删除文件或修改它们,并在TortoiseGit中单击提交并尝试恢复我可以看到的更改和错误:


恢复失败:错误:无法统计刚刚写入的文件:无此文件或目录

任何人都经历过这个?这似乎是某种权限问题,但有时这可以通过重新启动计算机来解决。我想找到更可靠的解决方案。

解决方案

Git for Windows,2.16.0.windows.2包含几个bug stat(基于错误的fscache实现;参见 https://github.com/git )。



Git for Windows> = 2.16.1.windows.1是固定的(参考release notes https://github.com/git-for -windows / git / releases / tag / v2.16.1.windows.1 )。



PS:对于Git> = 2.16,至少需要TortoiseGit 2.5 .7。


When I do some modifications on my local environment like removing files or modifying them and in TortoiseGit I click commit and try to revert the changes I can see and error:

Revert failed: error: unable to stat just-written file : No such file or directory

Has anyone else experienced this? It seems to be some kind of permissions issues but sometimes this can be fixed by restart of the computer. I would like to find more reliable solution.

解决方案

Git for Windows, the 2.16.0.windows.2 contains several bugs regarding stat (based on faulty fscache implementation; cf. https://github.com/git-for-windows/git/pull/1445).

Git for Windows >= 2.16.1.windows.1 is fixed (cf. release notes https://github.com/git-for-windows/git/releases/tag/v2.16.1.windows.1).

PS: For Git >= 2.16 you need at least TortoiseGit 2.5.7.

这篇关于TortoiseGit恢复失败 - 无法恢复本地更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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