开源 AI 生态研究项目 Git 大文件 LFS 配置教程与团队开发指南
GitHub 仓库初始化
git init
git add .
git commit -m "first commit"
关联远程仓库并推送
git remote add origin https://github.com/wang-junjian/open-ai-eco.git
git branch -M main
git push -u origin main
视频没有使用 Git LFS
remote: warning: File public/videos/open-design-webprototype.mp4 is 84.20 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: warning: See https://gh.io/lfs for more information.
解决方案:
一、全局配置 public/videos/ 下所有文件走 Git LFS 1.