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!
View all comments
Show parent comment
0
u/lucyfor Oct 16 '26
Software doesn't issue judicial rulings of ownership; courts do. Tools establish the admissible factual record (FRE 902) upon which courts determine ownership.
Under copyright law (17 U.S.C. § 101/201), rights attach the moment code is fixed in a tangible medium. Establishing an immutable Merkle root and RFC 3161 timestamp proves the fact of priority — that these exact bytes existed at this exact second.
As for copying someone else’s repo to timestamp it first: good luck in discovery. In copyright and trade secret litigation, presenting an unearned bulk code dump with zero preceding commit history, zero incremental development DAG, and obvious access to the author's work against an authentic commit history is a textbook way to get sanctioned.
If the other side didn't timestamp their work and you have cryptographic proof of priority, "then what?" Then you hold the evidentiary presumption of prior existence. That's the entire point.