0

I have a Bitbucket repository.I am the only one working on my remote repository. Everything works fine and suddently I cannot push anymore. git push origin master returns

Enumerating objects: 145, done.
Counting objects: 100% (145/145), done.
Delta compression using up to 4 threads
Compressing objects: 100% (84/84), done.
fatal: unable to read 663ac546bf5ff0f76a5f41881b73b5c03c3d9bae
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly error:
failed to push some refs to ... 

git pull says Already up to date. Any idea/reason why getting this error suddently while I am the only one working on my repository?

Not sure if the issue is related to what happen before. What happens before is that my computer shutdown when I added some files git add in the index and I had not yet commited.

After getting my computer up, I had the following issue when runing git ls-files -m:

error: bad signature 0x00000000
fatal: index file corrupt

Seems my filesystem was corrupted and I fix the file system issue following this (rm .git/index then git reset). I was able to run git commands and add my files to the index. After commit, I started having this issue.

Thanks

bkm
  • 259
  • 3
  • 8
  • Even `git push origin master --force` does not work. Have the same error `Enumerating objects: 145, done. Counting objects: 100% (145/145), done. Delta compression using up to 4 threads Compressing objects: 100% (84/84), done. fatal: unable to read 663ac546bf5ff0f76a5f41881b73b5c03c3d9bae fatal: the remote end hung up unexpectedly fatal: the remote end hung up unexpectedly fatal: the remote end hung up unexpectedly error: failed to push some refs to ...` – bkm Mar 05 '21 at 22:53
  • Have you pushed all local changes? Can you re-clone the entire repo without losing data? – harmonica141 Mar 11 '21 at 11:44
  • No I cannot reclone without losing data. – bkm Mar 31 '21 at 17:51

1 Answers1

0

All,

Finally the only way I was able to do was to reset the local repository and manually backup/copy my local changes. Then, clone a new repository from remote and manually add my backed up changes to the new cloned repository.

Thanks,

bkm
  • 259
  • 3
  • 8