Dark navy cover reading 'Git push refused.' above the error 'the receiving end does not support this repository's hash algorithm'.

Convert a Git repo from SHA-256 to SHA-1 and keep the history

I ran git push origin main on a repository with 151 commits and no other copy anywhere, and got this: 1 fatal: the receiving end does not support this repository's hash algorithm Nothing was wrong with the network or the credentials. The repository stored its objects with SHA-256 ids, and the remote only understood SHA-1. Every commit existed locally and none of them could leave the machine. Check the object format: 64-character ids mean SHA-256 1 git rev-parse --show-object-format 1 sha256 The setting lives in .git/config and is written at git init time: ...

November 9, 2026 · 8 min · widnyana