git lfs migrate import --include='*.zip' --everything

Category: Git - Advanced

git lfs migrate import --include='*.zip' --everything

Convert existing files to Git LFS

Rewrites history so matching files are stored as LFS pointers retroactively, shrinking the repository. It rewrites every affected commit hash and requires a force push, so coordinate with the whole team first. Back up the repository before running it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.