Closed DomoYeti closed 9 years ago
I actually fixed it. Here's how I did it:
I first used: find .git/objects/ -size 0 -delete (backup your files!) Then I deleted the clone of my repository on my computer, and recloned it. From there I added the upstream and it worked.
user@cu-cs-vm:~/Book3/book3$ git fetch upstream error: object file .git/objects/2d/1140c65949a41484bd5162c99edb3b04abc48e is empty error: object file .git/objects/2d/1140c65949a41484bd5162c99edb3b04abc48e is empty fatal: loose object 2d1140c65949a41484bd5162c99edb3b04abc48e (stored in .git/objects/2d/1140c65949a41484bd5162c99edb3b04abc48e) is corrupt fatal: The remote end hung up unexpectedly
So I cloned the repository again and tried to setup the upstream again, but when I used the fetch command, I got this error. I had a similar error to this on Monday's class as well, and I had to completely remake the book.
I could try to delete this file, but I don't know where to find this.