A new preview, then a bounded local experiment
GitHub’s December 3 public preview covers new SHA-256 repositories on github.com and Enterprise Cloud with data residency. The choice is permanent; existing repositories remain SHA-1.
That announcement prompted a deliberately small demonstration: can the Git installed here compute both formats from exactly the same bytes? We kept the payload owned, the repositories temporary and the observations narrower than any hosted-service compatibility claim.
One owned payload, two isolated local repositories
On December 4, Codorc used installed Git 2.44.0 to initialize two bare repositories inside one Python TemporaryDirectory, selecting --object-format=sha1 and --object-format=sha256 respectively. We supplied the same owned UTF-8 text, codorc-object-demo followed by a newline: 19 bytes. The final newline is part of the input.
For each repository, rev-parse --show-object-format confirmed the selected format and hash-object --stdin computed the default blob ID. We omitted -w, so that hashing command did not write the object. System/global Git configuration was excluded from the controlled environment; the temporary directory was removed afterward. No user repository or global configuration changed.
Read the two actual results without truncating either
The SHA-1 result was 1cb16e19 a33f4278 3a8e516e 5805a789 97c208e0. The SHA-256 result was b552cc4b 27d60a72 f884084d 166df207 6a5351fc 08aa3330 5e049b52 845b118d. These are the complete observed IDs, displayed in eight-character groups for readability. Remove the spaces to recover their literal values: 40 and 64 hexadecimal characters.
These identify Git blob objects. Git’s object naming includes the type and length framing as well as the content; these are not raw-file checksum results. The longer ID is also not formed by extending the shorter one. Retain the algorithm and full result together when recording this comparison.
Follow an ID through an ordinary integration
Imagine a fictional FernBuild service that receives repository events, stores an object ID and places it in a build-log link. A fixed 40-character database field could reject the longer value or lose part of it, depending on the storage behavior. A parser accepting exactly 40 characters could reject the event before the build is queued.
Our proposed trial would retain the incoming value, the stored value and the value used to construct the link. Compare those complete strings. A shortened label can remain useful on screen while the underlying record keeps the full identifier. Record the repository alongside it so a later lookup has the intended context.
Discover the format and review the actual client chain
GitHub’s repository hash-algorithm reference documents the hash_algorithm response field. We did not call that endpoint. Our local result establishes only what this installed Git did with the supplied input.
List the components your team actually uses: desktop clients, CI images, repository libraries, event consumers and backup tooling. Check their documented support and then observe an appropriately isolated trial. Neither the longer identifier nor our two local computations establish that pushing, fetching, signing or every hosted feature works through that complete chain.
Keep a compact compatibility record
The useful outcome is a traceable identifier path with clear boundaries. Keep the preview decision and integration evidence together, so a teammate can repeat the review when a client or storage schema changes. Our local receipt retains exact arguments, input bytes, outputs and cleanup evidence; no remote compatibility result is implied.
For the proposed FernBuild trial, record:
- Repository identity, selected hash algorithm and the date checked.
- Each Git implementation, library and CI image version in the path.
- The full incoming, stored and link-target object IDs.
- Storage limits and parser assumptions for both 40- and 64-character values.
- Display abbreviations separately from the complete underlying identifier.
- The operations actually tested and the remaining untested integrations.
Event dates identify the announcement or milestone covered. Publication dates show when this article first appeared on Codorc.



