赞
踩
::: tip 注意 大文件提交要在项目初始化之前处理
cd xxx #'xxx'是你本地仓库目录
# 只需执行一次即可开启lfs功能
git lfs install
#因为我是pth模型文件过大,所以我的命令是*.pth,此处需要根据自己情况设定类型
git lfs track "*.gz"
git add .gitattributes
git commit -m '提交 .gitattributes 文件'
git push origin master(如果提交不了,后面可以加一个-f)
git add ./bigData #我的大文件全在bigData文件夹下,根据自己情况更改
git commit -m "upload Models"
git push origin master -f
# 错误
batch response: LFS only supported repository in paid or trial enterprise.
rm .git/hooks/pre-push
git push -u origin "master"
# 错误
WARNING: Authentication error: Authentication required: LFS only supported repository in paid enterprise.
git config lfs.https://gitee.com/{your_gitee}/{your_repo}.git/info/lfs.locksverify false
注: 命令中的{your_gitee}/{your_repo}是你的远程仓库地址,根据自己情况替换。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。