• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

水底的小鱼鱼

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

github 大文件推送

install git-lfs即可安装
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
yum install git-lfs
git lfs install

4. 使用方法

告诉lfs需要管理的大文件,比如model.pb,运行命令git lfs track model.pb
将管理文件.gitattributes添加入git仓库git add .gitattributes
将大文件添加入git仓库,然后和其它添加方式一样

//git lfs track "*.iso"
git lfs track virtio-win-0.1.141.iso
git add .gitattributes
git add virtio-win-0.1.141.iso
git commit -m "vir"
git push origin master

//注意github上文件大小选中后下载才是文件的真实大小github里面存的是文件索引

posted on 2021-02-21 14:13  水底的小鱼鱼  阅读(87)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3