I try to push my git repository to an empty gitlab repo. But I get the following error:
remote: error: object e2c586089171e13888609613eca5e589f49b717b: nullSha1: contains entries pointing to null sha1
remote: fatal: Error in object
error: unpack failed: index-pack abnormal exit
To git@gitlab.domain.de:newrepo.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'git@ggitlab.domain.de:newrepo.git'
I am using the same repo with another remote and also with github and everything works fine.
I also tried git repack remote/origin/master
as suggested by this post, but it does not help.