Show HN: Git-knife β edit commit messages, authors, and dates like a spreadsheet
There's something almost sacrilegious about git-knife. Git has long been sold to us as a time machine β a perfect, append-only ledger of every change ever made to a codebase. We're told that history is preserved, that every mistake is documented, that the past is safe from tampering. But git-knife reminds us that this "time machine" was never a physical law; it was a social convention. The past is only immutable if nobody decides to change it. And now, with a tool that presents history as rows in a spreadsheet, the illusion of permanence evaporates. The past is just data, and data can always be edited.
This raises a delightfully weird question: if you rewrite the author and date of a commit, did that commit actually happen when you say it did? In the physical world, the past is fixed β the arrow of time doesn't bend to our will. But in a version-controlled universe, the past is a function of the present. Change a timestamp, and every downstream commit recalibrates. The causal chain reweaves itself. It's not unlike the "block universe" theory in physics, where past, present, and future all exist simultaneously and are simply coordinates in a four-dimensional manifold. Git history, it turns out, is a block universe too β every point is accessible, and editing one point re-renders the whole.
Of course, there's a practical dark side. Rewriting history is how malicious actors hide their tracks, and git's built-in protections (like signed commits and forced-push warnings) exist precisely because history tampering is dangerous. But the philosophical takeaway is more interesting: we treat git history as a record of truth, when it's really a record of intention. The tool merely exposes what was always true β that history is a story we tell ourselves, a narrative stitched together from hashes and diffs. The only thing keeping it honest is our collective agreement not to lie.