[O] Optimize sync with heuristic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user