Intermediate LevelGit & GitHub
What is Git LFS (Large File Storage) and how does it handle binary assets?
❓ Interview Prompt: Explain Git LFS architecture, replacing large binary files with text pointer files, .gitattributes tracking, and remote storage.
Git LFS replaces large binary files (videos, zip files, audio) in Git repositories with tiny text pointer files containing SHA-256 hashes, storing actual binary data on dedicated remote LFS servers.
Code Implementation Example
bash
git lfs install
git lfs track "*.mp4"
git add .gitattributes
git commit -m "chore: track mp4 assets with LFS"💡Configuring Git LFS tracking for large binary assets.
🎯 Interview Key Takeaway
Use Git LFS to replace large binary files with lightweight text pointers, keeping Git object stores fast.
#Git LFS#Binary Files#Performance#Intermediate
Back to all Git & GitHub Questions→