Key details

  1. Public preview announced December 3, 2026; github.com and Enterprise Cloud with data residency.
  2. New repositories only; SHA-1 remains available and existing repositories are unchanged.
  3. Full object IDs: 40 versus 64 hex characters; zero webhook sentinel changes too.
  4. Git 2.30+; empty SHA-256 clone needs 2.41+.
  5. REST hash_algorithm creation parameter and GET /repos/{owner}/{repo}/hash-algorithm.
  6. No mixed-format push/fetch or in-place conversion.

What builders should take away

  1. Create a disposable SHA-256 repository and test the complete build, deploy, mirror and webhook path before choosing it for a production project.
  2. Make identifier storage and validators handle both complete formats and preserve repository algorithm metadata.
  3. Verify exact client and checkout versions, including self-hosted runners and Git libraries.
  4. Keep existing origins intact; do not assume Git 3.0 will migrate them.

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.

What to watch next

  • General availability and any Enterprise Server support announcement.
  • Upstream mixed-format interoperability and GitHub migration tooling.
  • Git 3.0 roadmap and ecosystem support for 64-character object IDs.

Still unclear

  • No live repository or CI test performed; compatibility of LFS, all third-party integrations and specific Git libraries remains unverified.
  • No separate preview pricing or GA date announced in the retrieved release.
  • Git 3.0 timing is a contributor roadmap, subject to change.

Sources

Direct reading behind this dossier.

9 sources
About repositories
GitHub Docs official_documentation

Fork, clone, webhook and client restrictions.

Git installation
Git project official_documentation

Latest upstream stable version listed as 2.56.1 at check.

Hash function transition
Git project official_documentation

Underlying design and transition goals, not proof of shipped interoperability.

SHA-256 preview discussion
GitHub Community official_documentation

Community questions, checkout compatibility response, migration work not yet upstream; not independent test.

What's new in Git 2.56.0?
GitLab official_announcement

Git contributor summit roadmap and prior forge support; schedule is a plan.

Discussion

Discussion is reader-contributed. Comments are not part of the BTN dossier or its editorial evidence.

0 visible comments

Join the discussion

Keep comments useful and relevant. Reader contributions may be moderated and are not BTN editorial evidence.

Sign in to comment