Disk Space Issue

My Disk Space is almost full, but when I run git prune; git gc in console, I get the following error:

error: couldn't write .git/logs/HEAD: No space left on device
error: couldn't write .git/logs/refs/heads/master: No space left on device
error: failed to run reflog

My project name is kakuhou-surgeon, but it is private so let me know if you need me to invite you. Thank you!

1 Like

Hey @JMGbaum I’ve granted your project additional disk space for ~24 hours to give you the headroom to run the appropriate git commands. It looks like you’re writing to a sqlite file regularly and that’s filling up your git repo, so you may want to add that file to your .gitignore file.

echo 'database.sqlite' >> .gitignore

should do it. Then run your git commands and you should be back within space limits, and your git directory should grow more slowly.

Hope this helps!

2 Likes

Thank you so much! I really appreciate the help!

2 Likes

I’m sorry to bother you, but this happened again @cori.

Hello @JMGbaum,

Can you invite me to your project so I can take a closer look!

Hey @JMGbaum somehow we got our wires crossed on what to put in your .gitignore - you ended up with echo 'database.sqlite' in there, but that line should just read database.sqlite; sorry about that!

I’ve granted you additional space so you can execute the git prune; git gc process again and if you fix up that line in your .gitignore file you should be all set!

1 Like

Alright, thanks again!

2 Likes