Windows下Github上传超过200MB文件(LFS)
- 在Repository目录上右击,选择GIT Bash
git clone https://...
将库克隆到本地(可以克隆空库)- cd 库目录,进入本地库
- 将要上传的文件全部拷贝到本地库中
PS:下载 git-lfs.exe文件,一起放到本地库中(如上图所示) git init
初始化本地库git lfs install
安装**Large File Storage(LFS)**工具git lfs track “*.jar”
定义***lfs***要追踪的文件类型git add .gitattributes
生成对应文件
- git add . 装载本地库(注意有个. )
git commit –m “commitInfo”
git push –u origin master
注: 如遇此错误:
可以尝试使用
git config --global http.postBuffer 524288000
或者
env GIT_SSL_NO_VERIFY=true git clone https://...
git config http.sslVerify "false"