Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a little unclear what you mean by "modify", so just to be clear here: you can't alter an existing commit.

You can certainly fake any timestamp you want to start with, or you can create a new set of commits with a different timestamp (which is what rebase does), but you can't change an existing commit - the hash would be wrong.



>but you can't change an existing commit - the hash would be wrong.

True - however as long as nobody ever saw that commit, nobody will know. So the only way a git log could ever constitute a proof would be that you immediately push to a tamper-proof audit system right after your commit.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: