Working with remote repository at some moment I started recieving this when I run git fetch origin
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
This happens all the time. I found somewhere that git gc
should help but it works only once (or seems to work) - after this and following git fetch origin
I get
Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping.
Later the situation repeats. I also tried to remove .git/gc.log - it doesn't help.
My git skills are really limited. Why do I get this warnings and how to fix the issue for long?
Updating Git to the latest version, worked for me to get rid of this error