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

> Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!

Shouldn't it be easy for Git to remove objects created after a given time, and then remove all objects that refer to those objects iteratively?



I think that's exactly what it does; the default is two weeks: https://git-scm.com/docs/git-gc




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

Search: