Git rebase得到'文件失败'的错误 [英] Git rebase got 'unlink of file failed' error
问题描述
使用msysgit 1.7.0.2 时,在执行 git rebase -i 时,会挂起并且没有消息。
输入ctrl + c之后,我可以看到'文件的未链接失败,我应该再试一次(y / n)吗?'
然后我尝试了 git rebase - -abort 但得到相同的错误信息。所以现在它陷入了rebase过程中。这个错误看起来像是由只读文件引起的。有什么办法可以解决这个问题吗? Thanks.again(y / n)?'
您是否尝试过使用 set GIT_ASK_YESNO = false
?
谷歌小组主题在最近的mingw演变中提到了它:
利用新的环境变量
GIT_ASK_YESNO
来支持最近执行的回退,例如unlink
,rename
或rmdir
在Windows上使用的文件失败。
Git for windows是否使用?
注意: msysgit安装程序不一样比Git for Windows安装程序,另见 msysgit和cygwi不同n + git?)
的确提到 issue 755 ,这也应该可以缓解这个问题( commit 2db0641 ):
$ b
文件句柄不被子进程继承
Using msysgit 1.7.0.2, when doing git rebase -i, it hangs and there's no message. After enter ctrl+c, I can see 'unlink of file failed, should I try again (y/n)?' Then I tried git rebase --abort but got same error message. So now it's stuck in the middle of rebase process. This error seems like caused by read-only file. Is there any way to resolve this issue? Thanks.again (y/n)?'
Did you try with set GIT_ASK_YESNO=false
?
This Google group thread mentions it in the recent mingw evolutions:
Make use of the new environment variable
GIT_ASK_YESNO
to support the recently implemented fallback in caseunlink
,rename
orrmdir
fail for files in use on Windows.
What exact version of Git for windows are you using?
Note: msysgit setup is not the same than the "Git for Windows" setup, see also "Different between msysgit and cygwin + git ?")
git 2.8.4 (June 2016) does mention issue 755 which should also alleviate the issue (commit 2db0641):
Make sure temporary file handles are not inherited by child processes
这篇关于Git rebase得到'文件失败'的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!