What changed
On December 3, 2026 GitHub announced public preview support for creating new SHA-256 Git repositories on github.com and GitHub Enterprise Cloud with data residency. The web creation interface and REST API offer the choice; GitHub says clones select the remote format automatically. The hash algorithm cannot be changed after creation, and existing repositories retain SHA-1. GitHub continues to offer SHA-1 for new projects. Upstream Git has supported SHA-256 since 2.30; the Git project lists 2.56.1 as its current stable release on December 4.
Why it matters
Developers who need stronger object identifiers can now host new projects on GitHub without relying on SHA-1 for Git object identity. For small SaaS and self-hosted tooling builders, the immediate task is compatibility: webhook receivers, deploy dashboards, databases, build cache keys and dependency pinning may assume a 40-character object ID. This is a Git storage-format change, not the earlier GitHub HTTPS SHA-1 retirement or a change to signing algorithms.
A one-way choice at repository creation
GitHub documents that forks and clones inherit their parent's object format. Direct push and fetch across SHA-1 and SHA-256 repositories are unavailable. There is no in-place conversion path on GitHub today. That makes a new disposable project the safest pilot rather than attempting to replace an existing production origin. Git 2.30 is the general minimum; cloning an empty SHA-256 repository requires 2.41 or newer. GitHub CLI and Desktop do not currently expose the creation option.
APIs and webhook consumers need both formats
The REST creation documentation exposes hash_algorithm with sha1 and sha256 choices. GET /repos/{owner}/{repo}/hash-algorithm returns the repository's actual format; public repositories can be queried without authentication and fine-grained tokens need read access to metadata for protected resources. On local repositories use git rev-parse --show-object-format. GitHub cautions against determining the repository's format merely from ID length. Full object IDs are 40 hexadecimal characters in SHA-1 and 64 in SHA-256. Push webhook zero IDs used for branch or tag creation/deletion also follow the repository format. Review database CHAR(40) columns, validation regexes, serialization and zero-sentinel handling, and distinguish abbreviated display IDs from full identifiers.
Check CI, editors and library support
The actions/checkout release history records fixes for SHA-256 initialization and merge-commit matching in v6.0.3; v7.0.1 is listed as latest at inspection. The launch discussion reports that checkout should work, but also contains a user report of graph problems in VS Code. This is not a verified compatibility matrix. Check the exact action, Git binary, editor, libgit2 or JGit version, mirror, LFS workflow and deployment tooling used in your pipeline. Do not infer full integration compatibility from support for ordinary clone and push.
Why now, and what is still pending
SHA-1 collision research motivated Git's move to SHA-256; Git's transition design describes the desired interoperability, not a guarantee that format translation is deployed. GitLab's September Git 2.56 coverage reports prior GitLab support and a contributor summit plan for Git 3.0 in spring 2027, with SHA-256 as the default for new repositories. That is a roadmap, not a shipped release or fixed date. GitHub's preview discussion says upstream interoperability work is still needed before it can offer migration. The December announcement does not specify a separate preview fee, nor a general availability date.