赞
踩
在Gitee中上传大文件时,使用Git LFS(Large File Storage)。以下是使用Git LFS上传大文件到Gitee的步骤:
1、确保已经安装Git和Git LFS。如果没有安装Git LFS,可以通过以下命令安装:
git lfs install
2、配置Git LFS追踪大文件:
git lfs track "*.psd"
这里的*.psd
是示例,表示追踪所有扩展名为.psd
的文件。根据需要追踪不同类型的大文件。
3、添加文件到Git仓库并进行提交:
- git add .gitattributes
- git add *.psd
- git commit -m "*.psd"
4、推送代码到Gitee,包括追踪的大文件:
git push -u origin master
ps:如果遇到如下错误
batch response: LFS only supported repository in paid enterprise.
是因为付费才可以使用LFS
可以执行下面操作:
rm .git/hooks/pre-push
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。