Re:Reinventing the Git Interface (2014)
by ursus_bonum on Thursday March 30, 2017 @06:18PM
(#13999398)
That's odd. gc shouldn't be collecting anything less than 2 weeks old by default.
[ Parent
| on HN ]
That's not exactly what happened, but the idea is the same. You can add a 2 week vacation in the meantime if it helps you imagine it.
I would recommend taking advantage of git's incredibly cheap branches and drop a lifesaving breadcrumb on all the commits I was planning to keep. One of the first steps I tell people when showing the rebase workflow is leaving behind a 'safe' marker, and how to reset back to it if the rebase gets too hairy.