Designers commit PSD and video assets, and the repo keeps growing. How do you move them to Git LFS?
IntermediateScenarioScale, Submodules, LFS and GitHub Automation
Answer
Situation read → New files can be tracked going forward, but history already holds the blobs.
What I'd do →
git lfs installandgit lfs track "*.psd" "*.mp4"; commit.gitattributes.- Convert existing history on a mirror clone:
git lfs migrate import --include="*.psd,*.mp4" --everything. - Force-push and have everyone re-clone.
- Check:
git lfs ls-filesandgit lfs status.
Why → Git stores small pointer files, and the real content lives on the LFS server.
Interview tip → migrate import rewrites history, so do it once and coordinate.
More on Scale, Submodules, LFS and GitHub Automation
A monorepo has 4 GB of history and developers only touch one service. How do you make their day-to-day faster?IntermediateYour GitHub LFS bandwidth quota is exhausted and CI pulls fail. What do you do?AdvancedA repository uses a submodule. How does a developer get the right version of it?BeginnerSubmodules, subtree or a package manager for sharing code between repos?IntermediateCI cannot clone a private submodule: authentication fails in `actions/checkout`.IntermediateYou must remove a submodule completely.Beginner