解决上传,文件大小限制
命令:git lfs install
更改文件.gitattributes
*.jar filter=lfs diff=lfs merge=lfs -text *.pdf filter=lfs diff=lfs merge=lfs -text *.fbx filter=lfs diff=lfs merge=lfs -text *.tga filter=lfs diff=lfs merge=lfs -text *.PNG filter=lfs diff=lfs merge=lfs -text *.mp4 filter=lfs diff=lfs merge=lfs -text *.EXR filter=lfs diff=lfs merge=lfs -text *.FBX filter=lfs diff=lfs merge=lfs -text *.Fbx filter=lfs diff=lfs merge=lfs -text *.tif filter=lfs diff=lfs merge=lfs -text *.jpg filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text *.log filter=lfs diff=lfs merge=lfs -text * filter=lfs diff=lfs merge=lfs -text
本地上传未提交成功,本地回退到提交成功的版本
- 打印出最近上传本地版本
- 回退到正常版本(重启Sourcetree看结果)
git reset --mixed 37253d90c3bdf80a08d9a0d2a9a1b1ef5ab6cec4(会退到,此版本)
(文档-腾讯工蜂研发管理解决方案 https://code.tencent.com/help/lfs/actual
git log
git reset --mixed 37253d90c3bdf80a08d9a0d2a9a1b1ef5ab6cec4(会退到,此版本)
git lfs install(安装大文件)将项目中.gitattributes文件替换(文件)
C:/Users/Administrator/AppData/LocalLow/Brainau/TestBrainVR/HJ/Video/1.mp4)
大文件提交后,拉取解压
拉取下来后,文件加密,解密需要命令$ git lfs pull
标签:文件,Git,text,上传下载,filter,merge,lfs,diff From: https://www.cnblogs.com/WalkingSnail/p/18360430