Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-gui reports it has 256 loose objects each time is run and suggests compression which goes fine. How to fix it?

Tags:

git

After an unexpected shutdown, now git seemingly works fine but each time is run is asking for compression since it finds 256 loose objects. Is it possible to be cleaned?

like image 834
j riv Avatar asked Oct 22 '10 10:10

j riv


2 Answers

Run git gc. If that doesn't work, please copy the error message.

like image 84
Jeff Ferland Avatar answered Oct 27 '22 00:10

Jeff Ferland


I had the same issue, git gc did not solve it for me (even with the most aggressive etc. options). But it worked:

git config --global gui.gcwarning false

(it suppresses the window pop-up that is really annoying) See How to skip "Loose Object" popup when running 'git gui'

like image 20
gilyen Avatar answered Oct 27 '22 00:10

gilyen