rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.84k stars 535 forks source link

Can't push cleaned repo to GitLab, even though it works on GitHub #422

Open ebaender opened 3 years ago

ebaender commented 3 years ago

Sometimes when I try to push my cleaned repo the remote hangs up immediately,

PS C:\myrepo.git> git push --force
Enumerating objects: 26114, done.
error: RPC failed; curl 35 OpenSSL SSL_connect: Connection was reset in connection to git.dhvlab.org:443
fatal: the remote end hung up unexpectedly
Writing objects: 100% (26114/26114), 3.96 GiB | 91.43 MiB/s, done.
Total 26114 (delta 0), reused 0 (delta 0), pack-reused 26114
fatal: the remote end hung up unexpectedly
Everything up-to-date

but most of the time I just get stuck indefinitely after enumerating objects:

PS C:\myrepo.git> git push --force
Enumerating objects: 26114, done.
_

The repo uses git LFS, could that be causing problems? I tried the exact same cleaning operation on a GitHub repo using LFS though, and the changes went through just fine. I also tried running git lfs prune just in case, as suggested in #397 .

spookyuser commented 1 year ago

Has a similar issue for me it was this https://stackoverflow.com/a/68711337/1649917