[O] Optimize sync with heuristic

This commit is contained in:
2026-05-06 18:32:16 +00:00
parent 18cf024b6e
commit 61450e3a97
3 changed files with 316 additions and 36 deletions
+2
View File
@@ -126,6 +126,8 @@ Retry only repositories that failed during the previous non-dry-run sync:
git-sync sync --retry-failed
```
`git-sync` stores a small ref cache in the work directory. On later runs it first checks each repository with `git ls-remote --heads --tags`; when all endpoints report the same refs as the last successful sync, it skips the full fetch/push pass for that repository.
Use cron or another scheduler for automatic execution:
```cron