# GitHub opens public test of SHA-256 file-identification method for repositories

The platform says users can choose between two methods of identifying stored files when creating a repository, which stores a project’s files and their history, letting developers test the alternative while checking their tools for compatibility.

Published 4 December 2026 · Verified as of 4 December 2026 · AveNews · Software

https://www.avenews.am/en/posts/github-sha256-repositories-public-preview · [Հայերեն](https://www.avenews.am/hy/posts/github-sha256-repositories-public-preview)

> **Summary:** GitHub says its public preview lets developers create repositories, which store a project’s files and their history, using SHA-256, a method for generating identifiers for stored content that it describes as more secure than the traditional SHA-1. The choice cannot be changed after creation, so users need to check their tools first.

Sole source: GitHub. GitHub has opened a public preview of repositories, which store a project’s files and their history, using SHA-256, a method for generating identifiers for stored content, the company said on 3 December 2026. The preview covers github.com and GitHub Enterprise Cloud with data residency. [^1]

Git is the software that tracks changes to a project’s files. Git has traditionally used an older method, SHA-1, to identify stored objects. GitHub describes SHA-256 as a more secure alternative after attacks, including SHAttered, exposed weaknesses in SHA-1. [^1]

In February 2017, researchers from Google and the CWI Institute in Amsterdam demonstrated a SHA-1 collision: they produced two different PDF files with the same identifier. That result showed that SHA-1 identifiers can match even when the files differ. [^2]

## Choosing and checking a repository

Users can choose SHA-1 or SHA-256 when creating a repository through GitHub’s website or its application programming interface, a way for software to communicate with the service. The choice cannot be changed after creation, and existing GitHub repositories continue to use SHA-1. Users whose tools are not ready can keep creating SHA-1 repositories. [^1]

## Tools may need updating

Before choosing SHA-256, GitHub says developers should use Git 2.30 or later and confirm that other software implementing Git, such as libgit2, supports SHA-256 repositories. Tools that read object identifiers from interface responses, automated event messages known as webhooks, or other sources also need to handle both 40-character SHA-1 identifiers and 64-character SHA-256 identifiers. [^1]

## References

- [GitHub](https://www.avenews.am/en/references/github-q28771536): The platform operator offering a public preview of repositories that use SHA-256.
- [Git](https://www.avenews.am/en/references/git-q186055): Software for tracking changes to files that supports SHA-256 repositories.
- [Google](https://www.avenews.am/en/references/google-q95): An organization whose researchers helped demonstrate a practical SHA-1 collision.
- [CWI](https://www.avenews.am/en/references/cwi-q1054410): An institute in Amsterdam whose researchers helped demonstrate a practical SHA-1 collision.

## Sources

[^1]: [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 Changelog, 3 December 2026
[^2]: [SHA-1](https://grokipedia.com/page/SHA-1), grokipedia.com
