gitee提交文件超过100MB,如何处理?


参考:https://gitee.com/help/articles/4232

在windows下,打开git bash(注意:用windows cmd是不行的):输入如下命令:
git filter-branch --tree-filter 'rm -f path/to/large/files' --tag-name-filter cat -- --all
git push origin --tags --force
git push origin --all --force

在ubuntu下,打开terminal,输入如下命令:
git filter-branch --tree-filter 'rm -f path/to/large/files' --tag-name-filter cat -- --all
git push origin master --tags --force
git push origin --all --force

Example

git filter-branch --tree-filter 'rm -f ./subs/file.pdf' --tag-name-filter cat -- --all


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM