r2lfs setup guide
Git LFS setup

Setting up Git LFS for this repo.

This repository stores its LFS objects on a custom server (r2lfs). You only need to do these steps once — about a minute end-to-end.

01

Install Git LFS

# macOS       brew install git-lfs
# Debian      sudo apt install git-lfs
# Windows     winget install GitHub.GitLFS
git lfs install
02

Create a GitHub Personal Access Token

Go to github.com/settings/tokens and create a token with the public_repo scope (or repo if the repo is private).

03

Clone the repository

When Git LFS fetches your first file it will prompt for credentials. Enter your GitHub username and use the token from step 2 as the password. Git's credential helper will remember it automatically.

git clone git@github.com:OWNER/REPO.git
cd REPO
git lfs pull
04

Pre-seed the credential (optional)

Want zero prompts? Stash the token in Git's credential store before cloning:

git config --global credential.helper store
printf 'protocol=https\nhost=lfs.chianfa.dev\nusername=YOUR_GH_USER\npassword=YOUR_GH_TOKEN\n' \
  | git credential approve