Running version 1.9.4.msysgit.0 of git, I\'m getting the mentioned error(s) almost every time I run git gc on the command-line or via
What I recommend you to do is to use git from the git-bash (i.e. %GIT_HOME%\bin\bash.exe) and not from cmd.
Once switching to git-bash you should not expect to get this problem since cmd is a Windows command that might lock your files, while git-bash is like a UNIX emulator which will not lock your files (even if it's actually looking on your Windows folders).