Hi Everybody!
I am pretty new to using git and was just trying to add some of my work on Casper to a GitHub repository. I have everything that I want committed and am just trying to push things from Casper, but keep getting the following error:
brendanmy@crhtc06:~/Casper-Code> git push
Enumerating objects: 123, done.
Counting objects: 100% (123/123), done.
Delta compression using up to 72 threads
Compressing objects: 100% (117/117), done.
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (122/122), 2.33 GiB | 18.02 MiB/s, done.
Total 122 (delta 23), reused 3 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
Is there something that I'm doing wrong? (I'm including my config settings incase there is something I didn't setup right):
brendanmy@crhtc06:~/Casper-Code> git config -l
user.name=Brendan Myers
user.email=brendanmichaelmyers@gmail.com
pull.rebase=false
credential.helper=store
http.postbuffer=10g
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/brmy4086/Casper-Code.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
http.postbuffer=524288000
Thanks for the help!
Brendan
Did you by chance commit some larger files to your repo?
It looks like you have http.postbuffer set a couple of times. You might try removing those as well. I think it needs to be set in bytes and the default should be fine (for most cases anyway).
@Katelyn FitzGerald Thanks for the help!
There is a chance that some data files slipped in there by hiding inside one of my directories... Is there a way to compare my commits to the main branch on GitHub? Or is there a way to get my committed files back to being untracked so I can just start over? (This repo is brand new so I'm also happy to scratch it all and create a new one if that sounds easiest)
To see which files are being tracked you can do something like git ls-files
.
That said, especially if you just started you may find it easier to start over rather than figure out how to remove files from your repo history.
If you're looking for more resources, you might find some good ones in the Pythia Foundations Git/GitHub materials and links.
And we've all (or most of us anyway) been there with git troubles - you're not alone. It's a great tool, but not always the easiest :upside_down: .
@Katelyn FitzGerald Thanks for your help! I'll just go ahead and restart things and make sure I don't add big files by accident!
And thank you for the words of encouragement! I thought git was finally making sense to me, then getting this error I was so confused! I will for sure be using that resource you sent!
Thank you, thank you!
Brendan
Last updated: May 16 2025 at 17:14 UTC