git lfs 上传文件有2G大小限制

怎么上传大于100MB的文件到github上,可以用git lfs

最大的坑:git lfs 上传文件大小有2G大小限制

也就是只能解决大于100MB和小于2G的文件上传

centos安装

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash

yum install git-lfs

在git目录下

git lfs install
git lfs track "\*.tar.gz"
git add .gitattributes
git commit -m "track \*.tar.gz files using Git LFS"
git add 1.tar.gz
git commit -m "add 1.tar.gz"
git push origin master

参考链接
https://github.com/git-lfs/gi...

你可能感兴趣的:(git,github)