GIT: GC Error during a git push

Solved
pcsystemd Posted messages 734 Status Member -  
pcsystemd Posted messages 734 Status Member -

Hello,

I've been encountering the following error and warning when I try to git push from my machine for the past few days:

 git push Enumerating objects: 13, done. Counting objects: 100% (13/13), done. Delta compression using up to 8 threads Compressing objects: 100% (5/5), done. Writing objects: 100% (7/7), 544 bytes | 544.00 KiB/s, done. Total 7 (delta 4), reused 1 (delta 1) remote: error: The last gc run reported the following error. Please fix remote: the cause and remove gc.log. remote: Automatic cleanup will not occur until the file is removed. remote: remote: warning: There are too many unreachable loose objects; run 'git prune' to remove them. remote: 


I executed the following commands:

 git prune git gc

But I still get the recurring error. I also looked for a gc.log that I could delete, but I couldn't find one!

For your information, my git version is 2.20.1.

Any idea?

Thank you



2 answers

mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
 

Hello,

I also looked but I don't have a gc.log that I could delete!

According to this page, gc.log is generated in ~/.git/gc.log. This same link indicates the procedure to follow to resolve the issue.

If the problem persists, this discussion seems to suggest that your problem may be related to your version of git. Have you tried updating git?

sudo apt update sudo apt upgrade

Good luck

1
pcsystemd Posted messages 734 Status Member 23
 

Thank you.

I've already done and read all of that.

I think the issue comes from the version of our GIT server and not from the local versions.


0