码迷,mamicode.com
首页 > 其他好文 > 详细

git push a file which is larger than 5MB

时间:2021-01-11 10:39:35      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:mit   struct   file   message   get   nta   model   doc   sage   

If a file is larger than 5MB size limit for pushing t, the files must be tracked and updated using git lfs.

Note: Please follow the instructions here(https://docs.github.com/en/free-pro-team@latest/github/managing-large-files/installing-git-large-file-storage) to install git lfs.

  1. Once you have installed use git lfs track the model files, or any files greater than 5 MB.
git lfs track "*.hdf5"
  1. The add the .git attributes file.
git add .gitattributes
  1. Then just continue to add the file, commit and push to the repo as you normally would.
git add file.hdf5
git commit -m "Commit message"
git push origin <commit branch>

git push a file which is larger than 5MB

标签:mit   struct   file   message   get   nta   model   doc   sage   

原文地址:https://www.cnblogs.com/morganh/p/14247975.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!