· 2 min read · Engineering & delivery · 閱讀中文版
SHA-256 Git preview: verify the delivery toolchain first
GitHub’s SHA-256 repository preview calls for a small compatibility exercise covering identifiers, builds, and deployment evidence.
On this page
On December 3, 2026, GitHub announced public preview support for SHA-256 Git repositories. New repositories can choose their hash algorithm, which cannot be changed afterward; existing repositories retain SHA-1. This is proposed compatibility guidance, not a report that this site has migrated or tested the feature.
Locate assumptions in the tools
The announcement identifies 64-character hexadecimal object IDs for SHA-256, versus 40 for SHA-1. Ask where your tools assume a fixed length: database fields, webhook validation, deployment forms, or scripts that shorten an identifier before querying it.
Code search is only a starting point. Trace the actual data flow from Git through CI and into deployment records. A screen may still look correct even when an earlier step has discarded information needed for precise traceability.
Exercise an isolated delivery path
I would use a small project without private data and record client, package, and integration versions. Test cloning, committing, pushing, CI execution, artifact retrieval, and deployment-version display. Capture expected and observed outcomes for each step. A successful clone alone cannot establish compatibility across the delivery chain.
Test command-line clients, desktop tools, and other Git implementations separately when the team uses them. The system Git version is not evidence for every component. If a check fails, identify the component, operation, and input before investigating its support status.
Preserve full identifiers as evidence
A human-facing screen may show an abbreviation, but machine exchanges and deployment evidence should retain the full identifier and repository context. Increasing a database field’s length is not enough: check validation, serialization, queries, and error handling too.
One useful acceptance exercise is to retrieve the commit identifier from a CI artifact, pass it through the deployment record, and resolve the same commit in the source repository. This is a suggested test, not an automatic guarantee attributed to any service. Preserving and recovering the identifier gives the team evidence for its next decision.
Make the choice explicit
Classify results as compatible, needing changes, or untested, and assign owners. Resolve critical gaps before choosing a format for a new project. A public preview is an opportunity to learn its limits and define acceptance criteria. It is not a reason by itself to alter an operating project simply to select the newest option.