Git Large File Storage

Mr.Hope ... 2020-6-3 Git
  • Git
  • 软件
小于 1 分钟

# Git Large File Storage

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 or GitHub Enterprise.

# Getting Started

  1. Download and install the Git command-line extension. Once downloaded and installed, set up Git LFS and its respective hooks by running:

    git lfs install

    You’ll need to run this in your repository directory, once per repository.

  2. Select the file types you’d like Git LFS to manage (or directly edit your .gitattributes). You can configure file extensions at anytime.

    git lfs track "*.psd"

    Make sure to track .gitattributes

    git add .gitattributes