github/gitee가 100m 이상의 파일을 업로드하지 않는 오류:this exceeds GitHub's file size limit of 100.00 MB의 해결 방법

2894 단어
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 [email protected]: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 (or sudo 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

  • 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

  • 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

    좋은 웹페이지 즐겨찾기