LFS

Large Git repositories become very slow and put a lot of strain on the GitLab server. The Large File Storage (LFS) extension is used to off-load large files from a repository to a separate storage.

For more information about LFS and GitLab please refer to the official documentation here.

User Interaction with LSF Repositories

A Git client with enabled LFS support is needed to work with LFS-enabled repositories.

The following examples show how to use the command line git client with LFS.

Clone

git clone https://gitlab.inf.ethz.ch/<group>/<project>.git
cd <project>
git config credential.helper 'cache --timeout 3600'
git pull

Enable LFS for a Repository

To enable LFS right after creating a new GitLab project follow these instructions. For an existing project that already contains data that should be moved to LFS isginf also provides instructions and a tool.

Are these instructions wrong, incomplete or outdated? Are they not helpful?
Please let us know.

Page URL: https://isg.inf.ethz.ch/bin/view/Main/HelpVersionControlGitLabLFS
2024-11-21
© 2024 Eidgenössische Technische Hochschule Zürich