hhmx.de

· Föderation EN Mo 10.06.2024 15:52:12

@b0rk the magic of `git maintenance start`

Föderation EN Mo 10.06.2024 15:57:53

@AlexAxthelm what's that? I've never heard of it

Föderation EN Mo 10.06.2024 20:20:49

@b0rk @AlexAxthelm it's a pretty new feature. It adds a list of repos into ~/.gitconfig, then when you run `git maintenance` it loops over each repo and runs the tasks configured in the .git/config of each one. The most interesting tasks are gc and fetching from upstream into hidden refs so that subsequent manual fetches stay fast.

It can also add maintenance calls into user systemd timers, or a user crontab, or the macOS scheduler thingy

Föderation EN Mo 10.06.2024 22:37:18

@b0rk it’s a relatively new command (~2021 I think) that sets up a few automated processes to keep a repo feeling snappy, like prefetching (so git fetch runs instantly), rebuilding the graph, and garbage collection. Most notable on big repos, but makes git operations crazy fast on pretty much any repo.