remote: warning: Large files detected.
remote: error: File django-oscar.zip is 115.24 MB; this exceeds file size limit of 100.0 MB
remote: error: hook declined to update refs/heads/master
To git@gitee.com:zhuozhi/oscar.git
Ubuntu
-
Similar to Debian 7, Ubuntu 12 and similar Wheezy versions need to have a PPA repo installed to get git >= 1.8.2
-
sudo apt-get install software-properties-common
to install add-apt-repository (orsudo apt-get install python-software-properties
if you are on Ubuntu <= 12.04) sudo add-apt-repository ppa:git-core/ppa
- The curl script below calls apt-get update, if you aren't using it, don't forget to call
apt-get update
before installing git-lfs.
-
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
Windows
- Download the windows installer from here
- Run the windows installer
- Start a command prompt/or git for windows prompt and run
git lfs install
Mac OSX
You may need to brew update to get all the new formulas
brew install git-lfs
git lfs install
RHEL/CentOS
-
Install git >= 1.8.2
-
Recommended method for RHEL/CentOS 5 and 7 (not 6!)
- Install the epel repo link (For CentOS it's just
sudo yum install epel-release
) sudo yum install git
- Install the epel repo link (For CentOS it's just
-
Recommended method for RHEL/CentOS 6
- Install the IUS Community repo.
curl -s https://setup.ius.io/ | sudo bash
or here sudo yum install git2u
- Install the IUS Community repo.
-
You can also build git from source and install it. If you do that, you will need to either manually download the the git-lfs rpm and install it with
rpm -i --nodeps git-lfs*.rpm
, or just use the Other instructions. The only other advanced way to fool yum is to create and install a fake/real git rpm to satisfy the git >= 1.8.2 requirement.
-
-
To install the git-lfs repo, run
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
from here -
sudo yum install git-lfs
-
git lfs install
添加文件类型
mkdir large-repo
cd large-repo
git init
// 通过Git LFS添加所有zip文件
git lfs track “*.zip”
提交文件
git add my.zip
git commit -m “add zip”
确认大文件
git lfs ls-files
my.zip
参考:
https://blog.csdn.net/diandianxiyu_geek/article/details/50734335
https://github.com/git-lfs/git-lfs/wiki/Installation
网友评论