Interview Prep/Git & GitHub/Scale, Submodules, LFS and GitHub Automation

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 →

  1. git lfs install and git lfs track "*.psd" "*.mp4"; commit .gitattributes.
  2. Convert existing history on a mirror clone: git lfs migrate import --include="*.psd,*.mp4" --everything.
  3. Force-push and have everyone re-clone.
  4. Check: git lfs ls-files and git 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Scale, Submodules, LFS and GitHub Automation