往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