[Resolved] .git folder taking so much disk space

Hello guys, my question is why the .git folder take so much space in disk? The folder size increase while the app runs and i have to delete the folder everyday because of sqlite error. Thanks in advance
Sqlite Error:
SQLITE_FULL: database or disk is full
Project Name: nikoo

It looks like your project is private so I can’t view the code to comment on specifics. However, there are a couple of potential reasons. We take regular snapshots of your project so you can roll back changes should you need to. If you have regularly changing data files then this can quickly bloat .git. We recommend having your SQLite database in a folder called .data, along with any json data files as these are automatically .gitignored. But you can add a .gitignore file and include any other files you want too to stop it from filling up too quickly.

You can free up space by running ‘git gc’ and ‘git prune’ from the command line. And if you don’t need the history running ‘rm -rf .git’ will delete it altogether.

2 Likes

I will try, thanks @Gareth!