赞
踩
Gitee的免费版本只能上传单个文件小于100M
在没有注意大小的请境况下,上传文件出现下面的报错
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch GO语言趣学指南 1.pdf" --prune-empty --tag-name-filter cat -- --all
git commit --amend
git push -u origin master
上面的按方法无效时,可以使用下面的方法
当存在大文件时,可以安装gitee的命令工具进行删除解决
安装下载地址
wget https://gitee.com/oschina/git-repo-clean/attach_files/946212/download/git-repo-clean-1.3.1-Linux-64.tar
安装使用
cd git-repo-clean-1.3.1-Linux-64/releases/1.3.1/Linux-64/
# 将命令添加到/usr/local中
cp git-repo-clean $(git --exec-path)
echo $(git --exec-path)
# 查看版本信息看是否能够正常显示
git repo-clean --version
使用
git repo-clean -i
操作如下图
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。