参考https://segmentfault.com/a/1190000005706707
https://blog.csdn.net/weixin_40928253/article/details/80588222
https://blog.51cto.com/caimengzhi/1937116
https://blog.csdn.net/wang15061955806/article/details/81043190
https://blog.csdn.net/Mao_Jonah/article/details/88372086
缩小.git大小
本人更推荐第二种方法,大文件对象再删除。
先查找大文件,命令如下:
git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -5 | awk '{print$1}')"
例如删除nspatientList1.txt文件:
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch bin/nspatientList1.txt' --prune-empty --tag-name-filter cat -- --s
# 提交到远程仓库(如GitHub, 我再次从git clone GitHub代码库会变小为1.3M) git push origin --force --all
# 必须回收垃圾,本地仓库才变小 git for-each-ref --format='delete %(refname)' refs/original | git update-ref --stdin git reflog expire --expire=now --all git gc --prune=now
rm -rf .git/refs/original git reflog expire --expire=now --all git gc --prune=now git gc --aggressive --prune=now
参考:http://www.phpernote.com/linux/1433.html
https://www.cnblogs.com/freephp/p/6273082.html
一种是:apt-get -y install language-pack-zh-hans
另一种是:export LANGUAGE=en_US.UTF-8 和 export LC_ALL=en_US.UTF-8
https://www.cnblogs.com/bravehunter/p/5653317.html