Handle Large Files With Git LFS
Store big binaries as pointers so the repository stays small.
Run git lfs track "*.psd" to route matching files through LFS.
01Command
Command
$ git lfs track "*.psd"02What it does
Git LFS replaces large files with small pointer files and stores the content on a separate server, keeping clone and fetch fast. The track command updates .gitattributes so the rule is shared with the team, unlike doing it per-machine in a GUI.
03Risk
!Warning: Everyone who clones the repository needs Git LFS installed, and LFS storage may be metered by the host.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Git LFSEvidence: Official Git LFS site describing large-file tracking.
Last verified: 2026-10-13 · Category: Developer
06Related solutions
Find files larger than 500 MB on Mac
List the biggest files in your home folder that are eating disk space.
Show file extensions for all files on Mac
Make Finder display .pdf, .docx, .png and every other extension at all times.
Find Which Process Has a File or Volume Open with lsof
List every open file descriptor — files, directories, and network sockets — per process.