git上傳超過100m大文件

一、git出錯以下錯誤時git

執行以下可解決錯誤:github

  git rm --cache '大文件路徑'blog

  git commit --amend -CHEADget

  git pushit

二、當必須上傳大文件時。需藉助git-fls配置

  下載地址:https://git-lfs.github.com/下載

  使用方式:im

    (1)、在項目目錄git lfs install。項目

    (2)、git lfs track '.文件後綴'。img

    (3)、git add .gitattributes。

    (4)、配置完成後就可按照平時git方式使用。

相關文章
相關標籤/搜索