github上传超过100M的大文件

  1. 在官网 https://git-lfs.github.com/ 下载LFS 并且按正常进行安装。

  2. 在git add + 文件之前,在你需要上传代码的git bash中输入下面命令:

    1. git lfs install
      
    2. git lfs track "*.h5"
      
    3. git add .gitattributes
      
    4. git commit -m "add .gitattributes"
      
    5. git push origin master
      
  3. 开始上传你的代码

    1. git add *
      
      git commit - m '上传'
      
      git push origin master
      
  4. 完成。

猜你喜欢

转载自blog.csdn.net/weixin_43742062/article/details/113771113
今日推荐