How does version history work?
Every push to a pit, yours or a collaborator's, creates a new version rather than overwriting the last one. The pit always shows the latest, but the earlier versions are kept.
You can read the full history with list_pit_versions, which is how a prompt's evolution stays visible instead of being flattened into a single final state.