I have empty private repository on GitHub I can normally access from the web.
When I make attempt to push some history I already did locally, I'm getting:
fatal: protocol error: unexpected capabilities^{}
Googling indicates in the past it meant server doesn't support SHA256, but that was 9 years ago. What could go wrong today?
How to diagnose the problem?
What's the remedy for it?
I'm using git version 2.34.1 from Ubuntu 22.04.
Edit: Following @VonC answer I upgraded git
to 2.42.0. And now the message changed to:
fatal: the receiving end does not support this repository's hash algorithm
which absolutely doesn't help how to fix the problem with the local repo. Hashes in the log are 64 characters long.