Windows下Github上传超过200MB文件(LFS)

Windows下Github上传超过200MB文件(LFS)

  1. 在Repository目录上右击,选择GIT Bash
  2. git clone https://...将库克隆到本地(可以克隆空库)
  3. cd 库目录,进入本地库
  4. 将要上传的文件全部拷贝到本地库中

    PS:下载 git-lfs.exe文件,一起放到本地库中(如上图所示)
  5. git init初始化本地库
  6. git lfs install 安装**Large File Storage(LFS)**工具
  7. git lfs track “*.jar”定义***lfs***要追踪的文件类型
  8. git add .gitattributes 生成对应文件
  9. git add . 装载本地库(注意有个. )
  10. git commit –m “commitInfo”
  11. 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"



猜你喜欢

转载自blog.csdn.net/qq_37255629/article/details/85253183
今日推荐