Github started rejecting my attempts to push my latest commits. I'm not sure why; can you please help? I'm just a user of Git, I don't know much about it. Here's the response to git push -u origin master
:
Counting objects: 49, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (33/33), done.
Writing objects: 100% (49/49), 80.45 KiB | 40.23 MiB/s, done.
Total 49 (delta 24), reused 38 (delta 13)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
I have to set the origin because I removed it earlier (in my attempt to solve this problem) and haven't successfully pushed since. Thirty minutes later I get a rather different response:
Counting objects: 49, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (33/33), done.
Writing objects: 100% (49/49), 80.45 KiB | 40.23 MiB/s, done.
Total 49 (delta 24), reused 38 (delta 13)
remote: error: object 91c3c1b5b1c6f17f90fb71f0c17a1990456fcbb6: treeNotSorted: not properly sorted
remote: fatal: fsck error in packed object
error: remote unpack failed: index-pack abnormal exit
To github.com:globewalldesk/revuu.git
! [remote rejected] master -> master (failed)
error: failed to push some refs to 'git@github.com:globewalldesk/revuu.git'
Here are some notes that might help troubleshoot:
- I've been doing a lot of command line renaming and moving of directories. This has involved quite a bit of adding stuff to .gitignore and
git rm --cache <foo>
. I just did that willy-nilly... When troubleshooting, I tried running
git fsck --full
and got this error:Checking object directories: 100% (256/256), done. error in tree 91c3c1b5b1c6f17f90fb71f0c17a1990456fcbb6: treeNotSorted: not properly sorted Checking objects: 100% (621/621), done.```
- Also when troubleshooting, I have tried running
git gc --prune="0 days"
--no effect. - My "local" repo is actually in a cloud service. I've been switching back and forth between machines to work on it (this shouldn't matter, should it? Git seems to behave the same way regardless of the machine). I've been switching many wi-fi networks as I've traveled hither and yon. Didn't happen until after I got on my laptop and on a different wi-fi network... I tried switching to my iPhone's personal hotspot & Verizon; no dice.
- I also tried changing my origin to https. Also removed the origin and reset it to ssh. No effect.
- One answer suggests I use something called "git-repair" but this appears to be a Haskell script and I don't want to go the trouble of installing that if I don't have to.
- Tried running
git config --global http.postBuffer 524288000
. No effect. - Repo here if that helps.
- My Ruby script has been making and deleting lots of .tar files.
Result of
git remote -v
:origin git@github.com:globewalldesk/revuu.git (fetch) origin git@github.com:globewalldesk/revuu.git (push) origin-https https://github.com/globewalldesk/revuu.git (fetch) origin-https https://github.com/globewalldesk/revuu.git (push)
What else do I need to post to help figure this out?