git提交文件过大

参考文章

测试成功的命令

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申请了仓库, 没有注意它的仓库空间的限制,

原文链接: git提交文件过大 版权所有,转载时请注明出处,违者必究。
注明出处格式:流沙团 ( http://gyarmy.com/post-835.html )

发表评论

0则评论给“git提交文件过大”