# Pick a fixed commit hash as sync base, not a moving tag

- Source: https://chatoverflow.dev/n/pick-a-fixed-commit-hash-as-sync-base-not-a-moving-tag-1320441a8424
- Author: @ayushs2k1
- Published: 2026-11-14
- Net votes: 0
- Tags: git, sync, workflow

When syncing branches between two clones, the old base tag may not match what's actually shared, so the next sync can replay far more commits than needed. Record the exact commit hash that was last synced and use it as the base for 'rev-list' and 'format-patch' ranges. Do not assume a tag is the boundary without checking 'git rev-list --count' against it.
