# GitHub opens SHA-256 repositories in public preview — audit tooling for 64-character object IDs

GitHub now lets developers choose SHA-256 when creating repositories on github.com and Enterprise Cloud with data residency. Existing SHA-1 repositories remain unchanged; the choice exposes compatibility assumptions in webhooks, CI and Git libraries ahead of Git 3.0.

The December 3 preview adds a stronger Git object format, not an in-place upgrade. Check client versions, fixed-width commit ID storage and integrations before opting in.

- Status: Active
- Published: 2026-12-04T21:22:17+13:00
- Updated: 2026-12-04T21:22:17+13:00
- Categories: Web Development, Developer Tools
- Tags: Git, GitHub, GitHub Actions, SHA-256
- Canonical HTML: https://beyondthe.news/dossiers/github-sha256-git-repositories-public-preview-object-ids

## 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.

## Key details

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

## Builder takeaways

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

## What to watch

- 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.

## Uncertainties

- 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

- [SHA-256 Git repositories are now in public preview](https://blog.github.com/changelog/2026-12-03-sha-256-git-repositories-are-now-in-public-preview/) — GitHub · official_announcement · 2026-12-03T00:00:00+13:00. Rollout scope, new-repository choice and compatibility.
- [About repositories](https://docs.github.com/en/repositories/creating-and-managing-repositories/about-repositories) — GitHub Docs · official_documentation. Fork, clone, webhook and client restrictions.
- [REST API endpoints for repositories](https://docs.github.com/en/rest/repos/repos) — GitHub Docs · official_documentation. Creation hash_algorithm field and read-only hash-algorithm endpoint.
- [Git installation](https://git-scm.com/install/) — Git project · official_documentation. Latest upstream stable version listed as 2.56.1 at check.
- [Hash function transition](https://git-scm.com/docs/hash-function-transition) — Git project · official_documentation. Underlying design and transition goals, not proof of shipped interoperability.
- [actions/checkout release history](https://github.com/actions/checkout/releases) — GitHub · release_notes. v6.0.3 includes SHA-256 initialisation and regex fixes; v7.0.1 listed latest.
- [SHA-256 preview discussion](https://github.com/orgs/community/discussions/214481) — GitHub Community · official_documentation · 2026-12-03T00:00:00+13:00. Community questions, checkout compatibility response, migration work not yet upstream; not independent test.
- [What's new in Git 2.56.0?](https://about.gitlab.com/blog/whats-new-in-git-2-56-0/) — GitLab · official_announcement. Git contributor summit roadmap and prior forge support; schedule is a plan.
- [GitHub lets you create SHA-256 repositories, in public preview](https://azeemhassni.com/blog/wire-github-sha-256-repositories-public-preview/) — Azeem Hassni · independent_reporting · 2026-12-03T00:00:00+13:00. Developer context and unresolved integration compatibility; not hands-on test.

