I am running the command git gc
on a git repository and am getting the error Deletion of directory '.git/objects/01' failed.
I am running the command in Git Bash on Windows 10.
I am pretty sure it isn't another process using the folder as I able to remove the directory within the same Git Bash shell via the rm -r
command. Upon rerunning git gc
I am informed Deletion of directory '.git/objects/02' failed.
Any ideas?