Git checkout and reset on Windows occasionally shows random files have changed

ぃ、小莉子 提交于 2019-11-29 04:16:58

It might be the Windows Search Indexer, which tries do index files as they are created. I ran into this issue with svn checkout and had to exclude that directory from indexing before I could successfully checkout a full project.

See my post https://connect.microsoft.com/VisualStudio/feedback/details/676699/cannot-open-linker-output-for-writing-or-cannot-close-file

Not git related!

Sysinternals' process monitor reveals that Windows explorer interferes with newly created files, perhaps due to some plugin or what, but it happens.

Disabling UAC Virtualization seems to have fixed the problem.

See http://code.google.com/p/msysgit/issues/detail?id=320

You can begin with a:

 GIT_TRACE=1

But it may not display much more than your original message regarding this file.

The usual cause is some opened editor which wants to reload the files when changed, and that can conflict with git's file manipulations.
That means: the usual strategy is to repeat your git command after having close as many other applications as you can.

I haven't found anyone describing similar behavior

See this thread for instance, ot this one, both on Cygwin.
What version of Git are you using (Git on Cygwin, or MSysGit, in a Cygwin session or a Dos session?)

You could try Filemon from sys internals

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