enable "git gc" cron job of gitea #9
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
by default, gitea does not run
git gc
so old git objects are not deletedsee gitea's cron.git_gc_repos config
example: run
git gc
every 3 days/var/lib/gitea/custom/conf/app.ini
example: my alchi repo currently has 64MiB
but it should be 21MiB because i removed a branch
see also https://codeberg.org/Codeberg/Community/issues/1494
same issue on righttoprivacy.onion: http://gg6zxtreajiijztyy5g6bt5o6l3qu32nrg7eulyemlhxwwl6enk6ghad.onion/RightToPrivacy/Gitea-Onion_WELCOME_GET_STARTED/issues/4
Thanks. I also enabled
cron.delete_missing_repos
cron. So I don't need to run both of these commands anymore manually.