跳至主要內容

Git Large File Storage

廖雪峰小于 1 分钟GitGit软件

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 GitHub.comopen in new window 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
    
上次编辑于:
贡献者: sunzhenyang