git commit大文件,不能push

git commit 超过仓库限制大小的大文件,导致不能push。
github或者码云,一般限制大小是100M,commit超过100M的文件会导致push失败。
解决办法有两个

1、充钱,提升仓库单文件存储大小

2、删除本地大文件git跟踪

/*
 xxxx.zip 为大小超限的文件,push失败后,会提示大文件名
*/
git filter-branch --tree-filter 'rm -f xxxx.zip' HEAD   

执行后,看到追踪文件被重写,搞定,在进行push即可


image.png

你可能感兴趣的:(git commit大文件,不能push)