News for hackers. Stuff that matters.
Re:Things I wish everyone knew about Git (Part II) by awaisraad on Wednesday July 20, 2022 @07:04AM (#32163995)
a colleague accidentally force pushed a stale branch to master and a weeks worth of work was potentially lost. That day git reflog helped and saved our jobs as we were contractors for a big Germany based client.
Re:Things I wish everyone knew about Git (Part II) by papito on Wednesday July 20, 2022 @08:14AM (#32164620)
Always disable force pushes to trunk (if that feature is available, as it is on Github).
Re:Things I wish everyone knew about Git (Part II) by LgWoodenBadger on Wednesday July 20, 2022 @11:08AM (#32166844)
I hope you(they) are backing up their source code as well, which would have helped you if reflog did not.