6 ms·
Show HN: Git-knife – Edit commit messages, authors, and dates like a spreadsheet
- hootz 4mo agoWould be great to have this, but as a TUI tabular editor.
- YonathanTesfaye 4mo ago[dead]
- ffsm8 4mo agoits vibecoded. just point another vibe based harness at it and youll have it in an hour or two. this thing is as trivial as you can get get, scope wise
- YonathanTesfaye 4mo agoI built a small Tauri app that just shows your commits in a table and lets you edit message/author/date directly, plus find & replace with regex if you need to fix a bunch at once. It backs up the branch before it rewrites anything doesn't touch file contents, just metadata.
- deleted 4mo ago[deleted]
- cautiouscat 4mo agoThis looks cool! Are there screenshots available?
- YonathanTesfaye 4mo agohttps://imgur.com/a/V5EGCOw https://imgur.com/a/V5EGCOw
- esafak 4mo agoI'd put that in the repo not here.
- YonathanTesfaye 4mo agoyou're right, done
- yboris 4mo agoPlease put up this or another screenshot as the first thing you see in the README - please! I'm reluctant to clone a repository and spend time on it just to find out the project looks crap and I don't want to use it. A screenshot saves other people's time :)
- YonathanTesfaye 4mo agodone
- everybodyknows 4mo agoUnreadable in iPad Safari -- delayed popup darkens the screen and demands app install.
- YonathanTesfaye 4mo agoah that's imgur. moved it to a github-hosted image should be fine now.
- no-name-here 4mo agoThanks, but is that a photo of a screen instead of a screenshot and that’s why it looks cloudy/random splotches are brighter? Regardless, it’s better than nothing, thank you.
- mellosouls 4mo agoHmmm, this seems to be making easy something you normally should not do.
- YonathanTesfaye 4mo agoAgreed mostly. The intent is local cleanup before you push like fixing a wrong author email across a batch or dates from a machine with a bad clock
- Carrok 4mo agoSo, exactly like a knife? Generally we don't want to cut people open, but when we need to do it, like during surgery, a sharp knife sure helps.
- YonathanTesfaye 4mo agothat's it
- slashdave 4mo agoSpreadsheet? that's a meat cleaver, not a scalpel
- nkrisc 4mo agoBased on the name I have to imagine the author knew this. A knife is a dangerous tool if used improperly, and invaluably useful when used properly.
- YonathanTesfaye 4mo agothat was the idea
- sixtyj 4mo agoExtra points for the name.
- YonathanTesfaye 4mo agoAppreciate it! pick a commit, stab it
- sixtyj 4mo agoSlicing or cutting fat is imho better ;)
- iamcoder18 4mo agoThis is cool, but has anyone ever needed to rewrite commit authors or dates?
- deleted 4mo ago[deleted]
- icase 4mo agoyes; when i wanted to make it look like i didn’t procrastinate for a week and implement the entire feature in one day
- xp84 4mo agoYes, for instance it could be useful if someone’s been accidentally committing with a bogus email address. Or if you’re cleaning up some sort of mess and would like to recreate an accurate history. Obviously as with any “force push” situation, the usual caveats apply if this is on a branch others have checked out, but if the mess is big enough, it is sometimes worth it to send everyone a script to reset or just to have people delete and re-check-out.
- schainks 4mo agoIf someone's been committing with a bogus email address and they're still working on the project, shouldn't they clean up their own commits?
- blazarquasar 4mo agoYeah, using this tool for example?
- throwaway613746 4mo ago[dead]
- webstrand 4mo agoUsually its me who has been committing with a bogus email address, because I don't like having my real user/email set in my $HOME/.gitconfig
- f1shy 4mo agoI would like to see something like this in magit. Other there is already?
- YonathanTesfaye 4mo agoNo idea not an emacs person does magit handle bulk author/date edits or just reword? genuinely curious
- deleted 4mo ago[deleted]
- NichoPaolucci 4mo ago“It never reimplements git — it shells out to the system git CLI and rebuilds commits with git commit-tree, reusing each commit's original tree so file contents are provably never changed.” Glad the LLM noted this - I was worried this would reimplement git
- YonathanTesfaye 4mo agoHa ha fair. But yeah shelling out to git and reusing the original tree object was deliberate means file contents can't change even if I screw up elsewhere.
- Myzel394 4mo agoWhy would you think such a project would reimplement git?
- mminer237 4mo agoI believe that was sarcasm.
- deleted 4mo ago[deleted]
- deleted 4mo ago[deleted]
- whateveracct 4mo agowhy can't anyone just do things themselves anymore? it's all LLM crap
- danudey 4mo agoFor what it's worth, I've used Claude to write a lot of smaller utility tools that I wouldn't normally have the time to sit down and implement, but which also solve straightforward problems. One small example is an extension for the `gh` cli where I give it a PR number and multiple branches and it cherry-picks that PR to those branches, or lets me know if some of the branches don't work. For managing multiple release branches it's very handy, but not so handy that I would have spent a lot of time and energy doing a good job of it. This seems like a similar sort of thing - a user friendly way to do something that most people don't need, and most people who need it probably don't need it very badly. I haven't used claude to replace my actual skills - researching, solving problems, etc. - but I do use it to replace all the stuff which is essentially 'spend a few hours reading API docs and writing boilerplate code'.
- Kerman 4mo ago[dead]
- jauntywundrkind 4mo agoTwo recent threads where I sing some praises of git rebase -i, specifically linking it to a spreadsheet. Awesome to see this pop up, feels serendipitous! Git rebase -i is not that scary 119 points, 16 days ago, 151 comments https://news.ycombinator.com/item?id=49053385 https://news.ycombinator.com/item?id=49053385 https://cachebag.sh/journal/interactive-rebasing/ https://cachebag.sh/journal/interactive-rebasing/ Staging patches with git add 34 points, 12 days ago, 52 comments https://news.ycombinator.com/item?id=49048570 https://news.ycombinator.com/item?id=49048570 https://cachebag.sh/journal/interactive-rebasing/ https://cachebag.sh/journal/interactive-rebasing/ Really enjoying jj these days but the git rebase -i spreadsheet remains such a winner. Expanding it more, leaning in, ftw.
- unqueued 4mo agoI appreciate that it uses git-notes and that is makes backup branches in it's own namespace. I wish it were a bit lighter though. Haven't seen mentioned, but you might want to check out https://github.com/mystor/git-revise https://github.com/mystor/git-revise
- beart 4mo agoIt looks like the screenshot was an actual photo of someone's monitor. I'm left wondering why print screen wasn't utilized. And for some reason it really makes me not want to touch this project.
- Conscat 4mo agoI thought it was a semi-transparent window until I read this. The curvature makes that clear, wow!
- YonathanTesfaye 4mo agoit is a actually a screenshot, that's zorin's window transparency doing that
- gcr 4mo agoThere is no curvature in the screenshot, only a semitransparent background
- skinfaxi 4mo agoLooking at the metadata it says it is a Gnome screenshot. What a pointless and incorrect non-sequitor. exiftool -a -u -g1 ~/Downloads/screenshot.png ---- ExifTool ---- ExifTool Version Number : 13.55 ---- System ---- File Name : screenshot.png Directory : XXX File Size : 1260 kB File Modification Date/Time : 2026:08:11 16:24:37-04:00 File Access Date/Time : 2026:08:11 16:24:41-04:00 File Inode Change Date/Time : 2026:08:11 16:24:41-04:00 File Permissions : -rw-r--r-- ---- File ---- File Type : PNG File Type Extension : png MIME Type : image/png ---- PNG ---- Image Width : 2351 Image Height : 1388 Bit Depth : 8 Color Type : RGB with Alpha Compression : Deflate/Inflate Filter : Adaptive Interlace : Noninterlaced Significant Bits : 8 8 8 8 Software : gnome-screenshot Creation Time : Mon 10 Aug 2026 10:19:53 PM +03 ---- Composite ---- Image Size : 2351x1388 Megapixels : 3.3
- lrvick 4mo agoNote: This will not work and cannot work on repos that use signed commits from multiple authors. Signed git history is immutable, and unsigned git history is a supply chain attack vector. That said I could see this being useful for single-author WIP branches doing cleanup before a PR
- YonathanTesfaye 4mo agoadded a warning for this in v0.2.0 signed commits now flag before the rewrite, it can know resign rebuilt commits with your key. https://github.com/TheRealYT/git-knife/releases/tag/v0.2.0 https://github.com/TheRealYT/git-knife/releases/tag/v0.2.0
- lrvick 4mo agoThat sure helps for personal use cases, and interesting! If you have more than one author in the history though that won't work, but I imagine where this is used the most is by an author cleaning up their own PRs. Appreciate being heard on this sort of thing! Will take a closer look.
- dhruv3006 4mo agothat's a catchy name - good luck.
- YonathanTesfaye 4mo agothanks
- Defletter 4mo agoThis is, funnily enough, something I've been periodically searching for for nearly a decade, and even renewed my search yesterday. For those wondering, my use case is a model Parliament (context: https://news.ycombinator.com/item?id=43474850 https://news.ycombinator.com/item?id=43474850) and deciding on using git to store the laws, with the commits representing the Acts of Parliament themselves. The problem is that we need to guarantee that every commit has the correct metadata: we do not care at all about the conservation of commit hashes. And if we've accidentally missed a law and need to interactively-rebase it into the git history, it should NOT reset all the subsequent commit dates to the current timestamp. Basically, we're wanting to use git as a historical archive. I'm delighted to have found this.
- TiddoLangerak 4mo agoFwiw, in plain git, there's 2 dates associated with commits. The author date tells when the content was authored, and doesn't change with rebase. Only the commit date changes. So the correct metadata is already there, and even more precise. It can tell you both when it was authored, and when it's history was last changed.
- Defletter 4mo agoThe author date was when it was introduced to Parliament, the commit date is the date of Royal Assent. Ditto with the date a referendum was called versus when its results were certified, etc.
- vivzkestrel 4mo ago- make a drag and drop ui for git rebase - i should be able to change order of commits - i should be able to change what files went in a previous commit
- YonathanTesfaye 4mo agonoted
- vancekai 4mo ago[dead]