It’s recommended1 to always run
git maintenance start
Instead of letting git tack on maintenance tasks when you run git commands, and waiting for it, just let it do them in the background.
https://git-scm.com/docs/git-maintenance
https://youtu.be/aolI_Rz0ZqY?t=1403 ↩