Install Git LFS
# macOS brew install git-lfs # Debian sudo apt install git-lfs # Windows winget install GitHub.GitLFS git lfs install
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.
# macOS brew install git-lfs # Debian sudo apt install git-lfs # Windows winget install GitHub.GitLFS git lfs install
Go to
github.com/settings/tokens
and create a token with the public_repo scope
(or repo if the repo is private).
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
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