Cant run "git prune; git gc" my disk space is full

Hi! i can’t run git prune ; git gc because my project ran out of space (95%) and i need to fix it fast! Thx.

Try rm -rf .git

twenty characters

1 Like

THANK YOU SO MUCH! :'0 @efewqefwfd

Note the command will wipe project history.

If you’re that lacking in space that severely, try temporarily moving a sizable folder to the /tmp directory, running git prune; git gc, then moving the folder back to your project directory. Files in the /tmp directory don’t count toward a user’s storage quota.