Closed robertpatrick closed 1 year ago
By the way, I also tried this with the original GitHub repo and got the same errors...
You ever find a solution?
Moved to the git-filter-repo
tool. Found large binary files BFG did not and didn’t have this issue.
It's a GitLab thing, particular to the service, Gitaly, that does the Git stuff on the back end.
I was able to work around this by doing git clone --bare
instead of git clone --mirror
, and then force-pushing the active branches of my project back to the origin
remote.
I also had to delete and reapply one tag, which was causing a whole arm of the old commit graph to be hanging around.
This is all a bit unwieldy, but my repo was small, with only a few dozen commits since its inception. Have a backup (fork) and think about it a bit before going down this route if you have a gargantuan repo with years worth of history and lots of tags. Or use a different tool, as suggested above.
deny updating a hidden ref
error - from the GitLab docs
I was able to use
--delete-files
to delete the large file in my project history. After runninggit reflog expire --expire=now --all
andgit gc --prune=now --aggressive
, the server is rejecting the necessary updates as a result of mygit push -f --mirror
:I am the Owner of the project in Gitlab and disabled branch protection to no avail. The deleted file still appear in the original commit where it was added.