在gerrit设置了最大不能上传超过600M的文件,今天开发遇到推送问题:

结果到本地怎么也找不到大文件。
后来只能按commit排查,用如下命令排查到了:

解决方法,将大文件去掉:(commitid为大文件所在commit)
git reset commitid^
rm filename
# 重新提交
git add --all
git commit -m 'xxx'
#t 重新推送
git push origin xxx
在gerrit设置了最大不能上传超过600M的文件,今天开发遇到推送问题:
结果到本地怎么也找不到大文件。
后来只能按commit排查,用如下命令排查到了:
解决方法,将大文件去掉:(commitid为大文件所在commit)
git reset commitid^
rm filename
# 重新提交
git add --all
git commit -m 'xxx'
#t 重新推送
git push origin xxx