天天看點

Git大檔案送出問題

往Git上送出大檔案時遇到:

this exceeds file size limit of xx MB remote: error: hook declined to update refs/heads/master

嘗試清理緩存和log都不行,最後用git lfs

首先安裝:

https://github.com/git-lfs/git-lfs/wiki/Installation

然後打開git bash: git lfs install

然後git lfs track “name_of_a_giant_file”

然後git commit -m “add large file”

然後git push origin master