bin: git_gc, sync_repos and sync_local share code