After merging several git repositories into on using method from How do you merge two Git repositories?. I'm pushing it into Github but it fails with:
git push -u origin master
Counting objects: 755, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (518/518), done.
Writing objects: 100% (755/755), 29.91 MiB | 1.55 MiB/s, done.
Total 755 (delta 195), reused 481 (delta 128)
remote: error: bad config line 1 in blob .gitmodules
remote: error: object b13fc97cca572d71bf5dad31706d4691bb11a1e7: gitmodulesParse: could not parse gitmodules blob
remote: fatal: fsck error in packed object
error: unpack failed: index-pack abnormal exit
To github.com:...........git
! [remote rejected] master -> master (failed)
error: failed to push some refs to 'git@github.com:...........git'
There was some submodules in some repository which I removed manually (rm pathtomodule\.git
then rm .gitmodules
). How to fix it or there are no other way, only remerge? git fsck --full --strict
gives nothing.