News for hackers. Stuff that matters.
Re:Things I wish everyone knew about Git (Part II) by onpensionsterm on Wednesday July 20, 2022 @07:09AM (#32164042)
>Some people automate this: they have a process that runs every few minutes and commits the current working tree to a special branch that they look at only in case of disaster.

This sounds nice. Does anyone have a concrete example?

I'd like to try with a cronjob but it would be useful to avoid having to create the job manually for each repo & I don't want a job repeatedly scanning all my disks. Is there anything like a global post-clone hook? Additionally, I'd be worried about race-conditions from saving work during the job.

There are no comments on this comment yet.