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