Disk space is too large for me to be able to clear it

I was trying to do git prune/git gc/refresh but there isn’t even enough space for that, anyone able to help?

do you know if it’s really the .git directory being too big?

I dont know, the glitch disk space is 95% and it wont let me edit or run any commands, annoying how i am not technically at the limit yet, but it wont let me do anything about it.

there should be lots of commands that don’t need extra home directory space, such as du -sh .git

Well evidently they do, because they are not working.

how do you know it’s not working because of disk space?

If I load up your project it loads up without warnings, and terminal commands work just fine. If things aren’t working for you, you’ll have to talk about what things you are trying to do with exact steps. You’re definitely getting close to your disk limit, but that won’t stop you from running commands in the terminal in the slightest.

All i wanted to do is run git gc, then git prune, then refresh.

Right, so walk me through what happens. You load the editor, what do you get? Then you click terminal, what happens? Then you type git gc, what happens? etc. Because as far as I can tell, all of that works fine, so if that’s not your experience, assume the people you talk to know nothing, and walk them through your experience so they’re caught up on what the problem is for you.

When I load your project, it loads up as expected (although I can’t say I appreciate it loading up with a list of extremely offensive words right in my face. I understand why it’s there, but if you want anyone to look at your project, put those in their own file and load it that way so it’s not the first thing they see). If I then click the terminal button at the bottom, it opens a terminal without any problems. If I then run du -sh . that works just fine and it tells me about 188MB is being used.

Sorry about the swear filter, I had intended to find a new one anyways for that reason.
As for what happens when i try to run commands, here.
i run git gc.
It says in the terminal
‘Fatal: unable to overwrite old ref-pack file: no space left on device
error: failed to run repack’
Sometimes the command runs, like loading up everything the command is supposed to do, but then it does nothing and sends the message i quoted above.

git gc can act a bit wonky, have you tried a git prune first, and only running git gc after that?

what about for du -sh .git

I did, it runs, but then gives the error, so nothing ends up happening.

Doesn’t do anything.

ok yeah philosophically does an informational command really “do” anything, one could argue no :pensive:

I did a project export to see what was eating up most of your space, and while obviously “the .git dir” is overly huge, it’s not the only thing. So a quick solution: go into the .cache dir, and delete those two cached chrome installers. That’ll free up almost 50MB and then you should be able to run git gc just fine.

On which note: using puppeteer in a space-constrained setting is probably something you don’t want to be doing in the first place.

1 Like

It turns out deleting the git history helped it ALOT thanks guys.