git 大文件上传

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 additional file extensions at anytime.

    git lfs track "*.psd"

    Make sure .gitattributes is tracked

    git add .gitattributes
  3. There is no step three. Just commit and push to GitHub as you normally would.

    git add file.psd
    git commit -m "Add design file"
    git push origin master

Git LFS is an open source project

你可能感兴趣的:(Git)