TortoiseGit revert failed - unable to revert local changes

…衆ロ難τιáo~ 提交于 2019-12-23 09:26:38

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/48446104/tortoisegit-revert-failed-unable-to-revert-local-changes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!