I'm trying to do a git pull and I get the following error:
Unlink of file 'lib/xxx.jar' failed. Should I try again? (y/n)
That usually means a process is still using that specific file (still has an handle on it)
ProcessExplorer is good at tracking that kind of process)
Try closing your other programs, and try again your
Note that you have an alternative with the
Update January 2016
That should be fixed in Git 2.8 (March 2016)
fetch: release pack files before garbage-collecting
Before auto-gc'ing, we need to make sure that the pack files are released in case they need to be repacked and garbage-collected.
Many codepaths that run "
gc --auto" before exiting kept packfiles mapped and left the file descriptors to them open, which was not friendly to systems that cannot remove files that are open.
They now close the packs before doing so.
git-for-widows issue 500.
Looking at the test used to validate that new approach, a possible workaround (since Git 2.8 is not yet out) would be to raise artificially
git config gc.autoPackLimit 10000 git fetch git config gc.autoPackLimit 50 # default value
Make sure temporary file handles are not inherited by child processes