Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

GitButler 17 min read Opinion easyNovice

Git 3.0's upcoming SHA-256 default will be a costly mistake

Git 3.0's planned switch of the default object hash from SHA-1 to SHA-256 will impose large ecosystem-wide migration costs for little practical security benefit. Second-preimage attacks remain infeasible even for MD5, collision attacks require an attacker to author both files, and real trust in Git comes from where you pull from and signed content, not the hash function. Meanwhile the change brings incompatible repositories, push failures against hosts, submodule splits, broken signatures and SHA-1 links on conversion, and tooling that assumes 40-character hashes.

Assumes: Git object modelcryptographic hash functions

Related posts

  • WebKit on GitHub!

    WebKit easyNovice

    WebKit froze its Subversion tree on June 23rd and moved source control to git hosted on GitHub, citing git's distributed collaboration model, its author/committer model, cheap branch and revert operations, and the fact that most contributors already worked from git-svn mirrors. GitHub was chosen for its developer community and an API that made pre- and post-commit automation easy to build. Because git hashes are unordered, which complicates bisection under WebKit's zero-tolerance performance regression policy, the project uses "commit identifiers": the ancestor count on main (git rev-list --count) plus a branch-relative count for branches. These identifiers are supported by the git-webkit script and the commits.webkit.org translation service.

  • Behind GitHub’s new authentication token formats

    GitHub Engineering mediumAdept

    GitHub's new token formats add a three-letter identifiable prefix (ghp, gho, ghu, ghs, ghr) with an underscore separator, a CRC32 checksum encoded in Base62 in the last six characters, and a Base62 random portion. The prefix alone is expected to cut secret-scanning false positives to about 0.5%. The checksum lets fake tokens be rejected offline without a database lookup. OAuth token entropy rises from 160 to 178 bits at the same 40-character length, and the underscore is chosen because it is not a Base64 character and double-click selects the whole token.

  • Post-quantum security for SSH access on GitHub

    GitHub Engineering mediumAdept

    GitHub is adding the hybrid post-quantum SSH key exchange sntrup761x25519-sha512 (Streamlined NTRU Prime combined with X25519 ECDH) to its Git SSH endpoints on September 17, 2025. The goal is to defend against "store now, decrypt later" attacks. Because the scheme is hybrid, security is never weaker than classical X25519. The change covers github.com, non-US GitHub Enterprise Cloud regions and GHES 3.19, but not the FIPS-only US region. Clients running OpenSSH 9.0+ negotiate it automatically, older clients fall back, and `ssh -Q kex` or `ssh -v` shows support and the negotiated algorithm.

  • Redesigning source control at Anthropic

    Anthropic Engineering mediumAdept

    Anthropic replaced git with Scion, an in-house centralized version control system, after its monorepo grew past what git mirrors could serve. Merges went from about 2,500 to over 30,000 per day, main-branch history approached 100 GB, and CI ran around 25 million checkouts a day. Scion assumes clients are always online and keeps commits, merges, blame and history on a horizontally scalable server backed by Spanner. Changesets live in a write-ahead log with recursively computed derived data, and clients fetch content-addressed trees and blobs through tiered caches. The result is a footprint 200x smaller than the old git mirrors, checkouts measured in seconds instead of minutes, and a 25% CI CPU saving, built by a team of seven in five months with heavy Claude assistance.

  • Scaling Git at OpenAI

    OpenAI hardMaster

    Pando is OpenAI's new Git backend for its monorepo, built to handle the concurrent pushes and fetches generated by Codex-driven parallel development while staying fully compatible with the Git protocol and client. Each branch is coordinated independently: incoming packs are stored as immutable blobs and ref versions are recorded in a horizontally scalable metadata store. This gives per-ref serializability but only causal consistency across the repository. Packfiles are reused across fetches rather than generated per client, trading some redundant bytes for far less server CPU and I/O. Compared with three-phase-commit replicas and a shared-manifest WAL in blob storage, Pando avoids a single write ordering point, and in production it cut median push latency nearly 5x while serving close to a petabyte of Git data per day.

The quest for software engineering knowledge.

Look:
Layout: