For the past couple of days, I have been attempting to push existing repos towards a locally hosted git server (hosted on an http site) to which I was able to push to in the past. However, I am now unable to do so with the following error.
git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 534 bytes | 267.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
Furthermore, this error only happens to my account. My colleague is currently able to push without any issues. I am also able to execute most other commands including clone and fetch commands.
This error happens whether I push:
Things I have tried unsuccesfully:
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
Followed by:
git config --global core.compression 0
git clone --depth 1 <repo_URI>
# cd to your newly created directory
git fetch --unshallow
git pull --all
git config --global http.postBuffer 157286400
git remote -v
git gc
git fsck
My company has a policy where we need to change our passwords every year. So at the beginning of the year, I changed my password.
However, our git accounts are associated with our Microsoft accounts so changing my password should've changed my git password in my mind. But it did not.
Go to Credential Manager
Go to Windows Credentials.
Delete the entries under Generic Credentials labeled as git. Windows stores quite a variety of credentials in here so don't modify any that you are unwilling to lose.
Then push once and re-enter my new (valid) credentials and all is now functional.