Attention

WARNING: From 8am on 30th June until 5pm on 4th July 2025, there will be no access to the Stanage HPC cluster.

We will try to minimise this downtime and it is possible that Stanage will return to service before 4th July. We will notify you by email when Stanage is back online and available for job submission.

Git LFS

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com

Interactive Usage

After connecting to Stanage (see Establishing a SSH connection), start an interactive session with the following command:

srun --pty bash -i

The latest versions of Git LFS is made available with the command:

module load git-lfs/3.4.0
module load git-lfs/3.2.0

You can now run the git lfs command:

Examples

To get started with Git LFS, the following commands can be used.

Choose the type of files you want to track, for examples all ISO images, with git lfs track:

git lfs track "*.iso"

The above stores this information in gitattributes files, so that file needs to be added to the repository:

git add .gitattributes

Commit, push and work with the files normally:

git add file.iso
git commit -m "Add disk image"
git push

Installation notes

Installation method

This section is primarily for administrators of the system. Git LFS has been installed using the default Easybuild config files.

Build logs and test reports can be found in $EBROOTGITMINLFS with a given module loaded.

Testing method

Testing has been conducted with the above examples.