# `mix llm_db.history.migrate_git`
[🔗](https://github.com/agentjido/llm_db/blob/main/lib/mix/tasks/llm_db.history.migrate_git.ex#L1)

Performs the one-time migration from legacy Git-tracked metadata commits into
content-addressed snapshots plus snapshot-based history artifacts.

By default this writes local artifacts only. With `--publish`, it also seeds
GitHub Releases with all discovered immutable snapshots and uploads a rebuilt
`history.tar.gz` bundle to the immutable history release for the latest
migrated snapshot.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
