流沙团
git提交文件过大
2023-8-18 流沙团

参考文章


测试成功的命令

git filter-branch --tree-filter 'rm -f 01_pytorch/dataset/cifar-10-python.tar.gz' --tag-name-filter cat -- --all -f
git filter-branch --tree-filter 'rm -f 01_pytorch/dataset/cifar-10-batches-py/data_batch_1' --tag-name-filter cat -- --all -f
git filter-branch --tree-filter 'rm -f 01_pytorch/dataset/cifar-10-batches-py/data_batch_2' --tag-name-filter cat -- --all -f
git filter-branch --tree-filter 'rm -f 01_pytorch/dataset/cifar-10-batches-py/data_batch_3' --tag-name-filter cat -- --all -f
git filter-branch --tree-filter 'rm -f 01_pytorch/dataset/cifar-10-batches-py/data_batch_4' --tag-name-filter cat -- --all -f
git filter-branch --tree-filter 'rm -f 01_pytorch/dataset/cifar-10-batches-py/data_batch_5' --tag-name-filter cat -- --all -f
git push origin --tags --force
git push origin --all --force

总结


因为最近一直在联系CV方面的东西, 每次的素材比较大, 我没有ignore ,直接提交了, 导致我的远程的git服务器出了问题, pull代码 , 已经pull不下来了.
重新在gitee申请了仓库, 没有注意它的仓库空间的限制,

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容