Git LFS in Projects
What is Git LFS?
Git LFS (Large File Storage) is an extension of Git that replaces large files (like datasets, models, or binaries) with lightweight “pointer” files inside your repository. The actual large files are stored outside the repo and fetched only when needed.
For JuliaHub projects, this means that text files larger than 5MB and binary files larger than 1MB are automatically tracked by LFS on publish operations and retrieved when resetting the project.
For users, not much changes: Reset and Publish operations will go through faster, but LFS tracked files are not viewable in the Source view (they can still be downloaded though).
Manual configuration
Sometimes it is useful to explicitly mark certain files as LFS-tracked (e.g. because they are small-ish artifacts known not to change much). You can either do this through our UI (see the video below) or by manually editing .gitattributes as described.
The .gitattributes file contains a system-managed section that is automatically updated by JuliaHub. Do not modify or delete any content within this section — it is marked by a header comment such as :
#JULIAHUB-MANAGED: JuliaHub managed attributes (do not edit; edits will be lost)Any custom entries you add must go above this header.