SourceTree Git LFS Integration: Faster Clones and On‑Demand Media Fetching
SourceTree’s built‑in Git LFS integration lets you clone large repos quickly, fetch media on demand, and avoid storage bloat.
08 Jun 2026, 03:31 UTC

Problem: Large Clones Slow Down Development
When you clone a Git repository that contains large binary assets—such as videos, Photoshop files, or compiled libraries—the clone can take minutes or hours and quickly fills your disk. Normal Git fetches every object, so a 500 MB video file becomes part of the initial download even though you may never need it right away.
Solution: SourceTree’s Integrated LFS Workflow
How it works
SourceTree includes built‑in support for Git Large File Storage (LFS). When a repository contains LFS‑tracked files, SourceTree shows a cloud icon next to each pointer file in the file list. The client automatically runs git lfs pull in the background, downloading the actual binary only when you open the file or explicitly request it. This keeps the initial clone lightweight and lets you manage large assets through a familiar UI.
Worked Example: Cloning a 500 MB Video Repository
- Clone the repo: Open SourceTree, choose File → Clone, and enter the repository URL (e.g.,
https://example.com/project.git). SourceTree runsgit clonewhich initially downloads only the pointer files for LFS objects; the 500 MB video remains on the server. - Verify initial size: After the clone finishes, check the local folder size. You should see a small repository (typically a few megabytes) because only text objects and LFS pointer files are present.
- Trigger an on‑demand download: In the file list, locate the video file. It displays a cloud icon, indicating the binary is not yet present locally. Click the cloud icon or press the “Pull LFS” button in the toolbar. SourceTree runs
git lfs pullfor that file, showing a progress bar. - Confirm the download: Once the progress bar completes, the cloud icon disappears and the file size on disk increases by ~500 MB. You can now open the video directly from SourceTree without any further action.
Limitation and Verification
Limitation: Simultaneous access to many large LFS files can cause spikes in network bandwidth, potentially throttling other traffic or exceeding ISP limits. Additionally, SourceTree versions older than 3.5 lack full LFS UI support; the cloud icons may be missing or behave inconsistently.
Verification steps:
- Open a repository in SourceTree and confirm that LFS‑tracked files show a cloud icon.
- Run
git lfs statusfrom the repository’s command line (requires repository root access) to see the download state of each LFS object. - Clone a repo containing large LFS files, verify that the initial download size is small, then use the SourceTree UI button to pull a specific LFS file and watch the progress bar fill.
Actionable Closing
To benefit from SourceTree’s LFS integration, first ensure you are running SourceTree 3.5 or newer. Open your repository, check for cloud icons, and use the built‑in “Pull LFS” control to fetch large assets only when needed. This workflow reduces clone time, saves disk space, and eliminates the need for manual git lfs commands, making large binary projects far more manageable.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.