GitHub opens SHA-256 Git repositories in public preview for new repos

mariorod1 · x · 2026-12-04

GitHub announced public preview support for SHA-256 Git repositories on github.com and GitHub Enterprise Cloud. New repos can pick SHA-1 or SHA-256 via web or API; SHA-256 (supported since Git 2.30, default in Git 3.0) hardens against attacks like SHAttered that exposed SHA-1 weaknesses. Caveats: the choice is permanent per repo, existing repos stay on SHA-1, object IDs grow from 40 to 64 hex chars, and tooling reading object IDs must handle both lengths.

Related event: GitHub opens SHA-256 Git repositories in public preview for new repos(2 posts)→

Original post →

More from coding & agent

coding & agent channel →