-
在官网 https://git-lfs.github.com/ 下载LFS 并且按正常进行安装。
-
在git add + 文件之前,在你需要上传代码的git bash中输入下面命令:
-
git lfs install
-
git lfs track "*.h5"
-
git add .gitattributes
-
git commit -m "add .gitattributes"
-
git push origin master
-
-
开始上传你的代码
-
git add * git commit - m '上传' git push origin master
-
-
完成。