git一次push异常
·
$ git push -u origin master -f
Counting objects: 1265, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1166/1166), done.
Writing objects: 100% (1265/1265), 53.01 MiB | 381.00 KiB/s, done.
Total 1265 (delta 277), reused 0 (delta 0)
remote: Resolving deltas: 100% (277/277), done.
remote: warning: Large files detected.
remote: error: File "Doc/\346\265\213\350\257\225" is 164.08 MB; this exceeds file size limit of 100.0 MB
remote: error: hook declined to update refs/heads/master
To https://git.oschina.net/androidios_monarch/ftagriculture.git
! [remote rejected] master -> master (hook declined)
Counting objects: 1265, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1166/1166), done.
Writing objects: 100% (1265/1265), 53.01 MiB | 381.00 KiB/s, done.
Total 1265 (delta 277), reused 0 (delta 0)
remote: Resolving deltas: 100% (277/277), done.
remote: warning: Large files detected.
remote: error: File "Doc/\346\265\213\350\257\225" is 164.08 MB; this exceeds file size limit of 100.0 MB
remote: error: hook declined to update refs/heads/master
To https://git.oschina.net/androidios_monarch/ftagriculture.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'https://git.oschina.net/androidios_monarch/ftagriculture.git'
刚开始没注意remote: error: File "Doc/\346\265\213\350\257\225" is 164.08 MB; this exceeds file size limit of 100.0 MB这一句话,osc git单个最大文件不能超过100mb,
对于多次本地提交的,回滚到上次提价,把大于100mb的文件删除或者压缩,再重新提交就可以了
查看提交历史
git log
回滚
git reset commit_id
更多推荐
已为社区贡献2条内容
所有评论(0)