On Tuesday, July 6, 2021 at 12:15:16 AM UTC+3 vind...@gmail.com wrote: Git prevents me from modifying the repository folder unless I reboot the PC. It started happening to me after fresh-installing Windows 10 today. During the setup, I enabled some experimental feature called "file watcher". Is it related to the issue? How do I fix this? Looks like it's a new feature of GfW 2.31. It appeas that Git automatically spawns a monitor process which opens the directory with the repository to ask the OS kernel to get notified about specific changes made to the files in that directory. Due to how Windows handles opened files and directories (which is an MS-DOS legacy, actually), if a process has a file or a directory open, another process cannot move or delete it, and that's what you're observing.
Hence basically I think it's a "take it or leave it" feature: if you want to enjoy fast `git stat` operations, you have to trade the inability to move Git repositories which are in active use arount on a filesystem. Looks like to disable the feature, one needs to do git config --global --add core.useBuiltinFSMonitor false and reboot (or kill the running watcher processes). On Thursday, July 8, 2021 at 1:22:32 PM UTC+3 philip...@iee.email wrote: > what sort of " modifying the repository folder " were you attempting to do? > > Also which version are you running? There has been an update in the last > few days which included changes to the file watcher (fsmonitor). > > If the update solves you problem, simply report that. If not, add a few > more details. > > thank you in advance... > > On Monday, July 5, 2021 at 10:15:16 PM UTC+1 vind...@gmail.com wrote: > >> Git prevents me from modifying the repository folder unless I reboot the >> PC. It started happening to me after fresh-installing Windows 10 >> today. During the setup, I enabled some experimental feature called "file >> watcher". Is it related to the issue? How do I fix this? >> [image: Screenshot 2021-07-05 230917.png] > > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/9410890f-9ca9-4255-82c2-bd989fb3bbfdn%40googlegroups.com.