当前位置:   article > 正文

Git上传大于100M文件「git-lfs」_remote: gitlab: you are attempting to check in one

remote: gitlab: you are attempting to check in one or more blobs which excee

Git上传代码报错

remote: GitLab: You are attempting to check in one or more blobs which exceed the 100.0MiB limit:        
remote: To resolve this error, you must either reduce the size of the above blobs, or utilize LFS.        
remote: You may use "git ls-tree -r HEAD | grep $BLOB_ID" to see the file path.

软件包下载:

https://git-lfs.com/

解压:

终端执行:

查看版本:

git lfs version 

进入项目.git文件夹下

cd *******

执行指令

git lfs install

标记为LFS文件

git lfs track "*.a"

标记为LFS文件夹

git lfs track "DEMO/*" 

查看已经标记的文件

git lfs ls-files

git add .gitattributes

先commit成功然后push

 git push

大文件下载

git lfs pull

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号