GitHub opens public preview of SHA-256 repositories
Published:
GitHub has made SHA-256 available for new Git repositories in public preview. Development teams need to check their tooling for compatibility.
GitHub has made SHA-256 Git repositories available in public preview on github.com and GitHub Enterprise Cloud with data residency. The hash algorithm can be selected through the web interface or API when a new repository is created. Existing repositories retain SHA-1, and GitHub says the algorithm cannot be changed after creation. Git uses the repository's algorithm automatically when cloning. GitHub recommends Git 2.30 or later and checking whether other implementations support SHA-256. SHA-256 object IDs contain 64 hexadecimal characters rather than 40, so tools consuming IDs from APIs or webhooks need to handle both lengths.
Why it matters
Teams should check integrations and Git clients before using new SHA-256 repositories; existing repositories are not converted.
Source retrieved: 2026-12-06