Practice free →
Home › Per Pro Git + Git LFS docs, when migrating an ex…

Per Pro Git + Git LFS docs, when migrating an existing repo with large binaries to LFS, the recommended command is which?

Agit lfs reset --hard (discards LFS pointers)
Bgit lfs upload all (one-shot push)
Cgit lfs migrate import (rewrites history)
Dgit lfs ignore --binary (skips LFS entirely)
Answer & Solution
Correct answer: C. git lfs migrate import (rewrites history)
git-lfs.com docs: 'git lfs migrate import' rewrites history so old large blobs become LFS pointers retroactively. Forces a re-push of history.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions