参考阿里云指导手册:
https://help.aliyun.com/document_detail/324155.html
推荐使用sourcetree,以下介绍通过sourcetree工具解决Git LFS问题:
sourcetree连接:https://www.sourcetreeapp.com/
一.基于新仓库或旧仓库当前状态添加lfs
1.启用LFS功能:仓库->Git LFS->初始化仓库
2.添加被LFS追踪文件类型:
3.添加自定义文件:直接命名
PS:MainWin
4.点击跟踪文件
5.git commit -m
6.git push
二.对旧仓库历史进行瘦身( 使用git-repo-clean工具)
https://gitee.com/oschina/git-repo-clean#https://gitee.com/oschina/git-repo-clean/releases/