I just went to clone a repository on another remote server and ran into an issue trying to do so:
git clone git@codebasehq.com:blah/blah/docs.git
Cloning into docs...
remote: Counting objects: 343, done.
remote: error: unable to find 14f87a739828e4d489b0310a51e057b30333926e
remote: Compressing objects: 100% (325/325), done.
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: fatal: unable to read 14f87a739828e4d489b0310a51e057b30333926e
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
I did a little research and found out about git fsck
, here is the output:
$ git fsck --full
error: sha1 mismatch 14f87a739828e4d489b0310a51e057b30333926e
error: 14f87a739828e4d489b0310a51e057b30333926e: object corrupt or missing
missing blob 14f87a739828e4d489b0310a51e057b30333926e
All other people with similar problems have a broken link issue or something. I'm still fairly new with Git, does anyone know how to fix this?
I can still push to my central remote repository, but I can't clone it.
14f87a739828e4d489b0310a51e057b30333926e
is a blob that is a markdown file in the repository root. I tried deleting this file and push those changes to no avail.
Edit: Is it possible to import git history from a another repo? I'm thinking I could just start a new repo and copy my files into it and then import the commit history.