r/git • u/lucyfor • Oct 15 '26
Why Git commit dates are legally hearsay, and how to cryptographically anchor commits before pushing
In Git, commit timestamps (GIT_COMMITTER_DATE and GIT_AUTHOR_DATE) are completely client-controlled strings. Anyone can forge commit history with a
single flag:
`git commit --amend --date="2021-01-01 12:00:00"`
Because Git blindly records whatever the client clock claims, raw Git commit histories are legally treated as uncorroborated hearsay under U.S. Federal
Rules of Evidence (FRE 802). In ownership disputes, co-founder litigations, or M&A tech diligence, opposing counsel or auditors can easily argue that backdated commits were fabricated.
To solve this without breaking standard Git muscle memory or leaking private code, I built **GitProof** (https://gitproof.legendrail.com) and open-
sourced its standalone verifier (https://github.com/LEGEND-Rail/gitproof-verify):
### How it works under the hood:
1. **Deterministic Merkle DAG Hashing:** Before a push, it walks the Git tree and computes a canonical SHA-256 Merkle root across all tree and blob
objects. Changing a single character in any file completely alters the 32-byte Merkle root.
2. Atomic RFC 3161 Notarization: It sends only the 32-byte hash imprint to qualified public Time Stamp Authorities (DigiCert & Sectigo) via HTTP
POST. Zero source code leaves your local machine.
3. Cryptographically Signed CMS Tokens: The TSA binds the hash to an atomic clock timestamp and cryptographically signs it using their intermediate
X.509 certificate authority.
4. Git Hook Automation: A native .git/hooks/pre-push hook intercepts pushes to automatically seal and append attestations into .gitproof/proof. json.
5. 100% Open & Offline Verification: In legal or compliance audits, closed-source tools destroy credibility. The standalone verifier (gitproof- verify) is a zero-dependency Go CLI that anyone can run offline to verify Merkle trees and certificate chains against root CAs.
### Quick test in any Git repo:
```bash
# Install CLI
curl -fsSL https://gitproof.legendrail.com/install.sh | bash
# Seal commit & notarize against DigiCert TSA
gproof seal --notarize
# Verify cryptographic proof offline
gitproof-verify proof.json
• Open-Source Verifier Repo: https://github.com/LEGEND-Rail/gitproof-verify • Detailed Technical Spec: https://gitproof.legendrail.com/docs/rfc3161.html
I’d love to hear your thoughts on Git hook ergonomics, Merkle tree performance on large repos, and how teams here handle code provenance!
5
u/alvaro17105 Oct 15 '26
Why not gitsign? Its cosign underneath, you can change the TSA to point to something like Sectigo TSA for eIDAS, which should be enough for code provenance attestation
2
u/Charming-Designer944 Oct 15 '26
What does it add that existing support for gpg signatures dont solve?
2
u/mze9412 Oct 15 '26
Outside of specific niches this sounds totally unneeded and over complicated. Why would I want to loose any sane way to rebase in my branch because of a commit hook or make it more complex?
This is not a widespread issue, tbh
2
u/jthill Oct 15 '26
That's an awfully convoluted way to say it, though.
Anybody with admin access can corrupt any history.
Keeping auditable, chain-of-custody-tracked logs generated in say pre- or post-receive of what commits arrived when can get any particular repo as much attestation as other vcs's offer now, those logs will have the server-administered timestamp.
1
u/zomerbk Oct 17 '26
One important distinction: FRE 802 is the hearsay rule, not a rule that makes Git timestamps legally inadmissible by default. A trusted timestamp can help show that a particular repository state existed by a certain time, but it doesn’t establish who created it, when each file was written, or that the state was publicly disclosed. For provenance, the value depends on what exact tree is sealed and how the proof is retained and tied to a person or release.
0
u/lottspot Oct 15 '26
I think this is actually interesting as hell. This is a problem I've always understood in my mind, but also understood there's no current solution for. This would be an extremely valuable tool for covering oneself in things like licensing and IP disputes, and its minimal exposure of private information should make it acceptable in sensitive or regulated corporate environments.
Probably my only complaint is that I can never be confident about how well a technical solution solves a legal problem until the opinions of at least a few lawyers enter the chat.