Today I forget to add ignore jar lines to .gitignore
, now the jar file(>100MB) added to my git(git version 2.32.0
) repo and I could not push to the remote repo:
warning: redirecting to https://gitlab.exaple.com/development/soa-zhuolian.git/
Enumerating objects: 70, done.
Counting objects: 100% (70/70), done.
Delta compression using up to 12 threads
Compressing objects: 100% (37/37), done.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (56/56), 104.61 MiB | 13.32 MiB/s, done.
Total 56 (delta 5), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
(base)
then I want to list the big jar file from my local repo:
git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -5 | awk '{print$1}')"
but this command shows error:
fatal: Cannot open existing pack file '.git/objects/pack/*.idx'
why would this happen? what should I do to avoid this problem?