Homebrew: brew install git-lfs
MacPorts: port install git-lfs
lamtern蓝灯
GitHub.com support now available. Install the client to get started.
lamtern蓝灯
Download
and install the Git command line extension. Once downloaded and installed, set up Git LFS for your user account by running:
git lfs install
You only need to run this once per user account.
In each Git repository where you want to use Git LFS, select the file types you'd like Git LFS to manage (or directly edit your .gitattributes). You can configure additional file extensions at anytime.
git lfs track "*.psd"
Now make sure .gitattributes is tracked:
git add .gitattributes
Note that defining the file types Git LFS should track will not, by itself, convert any pre-existing files to Git LFS, such as files on other branches or in your prior commit history. To do that, use the git lfs migrate[1] command, which has a range of options designed to suit various potential use cases.
To file an issue or contribute to the project, head over to the repository
or read our guide to contributing.
If you're interested in integrating Git LFS into another tool or product, you might want to read the
API specification
or check out our reference server implementation.
lamtern蓝灯
lamtern蓝灯
Version large files—even those as large as a couple GB in size—with Git.
lamtern蓝灯
Host more in your Git repositories. External file storage makes it easy to keep your repository at a manageable size.
lamtern蓝灯
Download less data. This means faster cloning and fetching from repositories that deal with large files.
lamtern蓝灯
Work like you always do on Git—no need for additional commands, secondary storage systems, or toolsets.
lamtern蓝灯
Keep the same access controls and permissions for large files as the rest of your Git repository when working with a remote host like GitHub.