Re:Is Git Irreplaceable? (2019)
by fulafel on Tuesday January 07, 2020 @11:24AM
(#21981413)
That GC a pretty big caveat! Combined with the fact that unreferenced objects are never pushed.
reflog is like undelete in filesystems, it's a probabilistic accident recovery mechanism for an individual computer (repo checkout in this case) that you can try to use if you don't have backups.
Re:Is Git Irreplaceable? (2019)
by vvillena on Tuesday January 07, 2020 @12:59PM
(#21982583)
In any case, git garbage collection isn't a common phenomenon. It usually triggers every few weeks, even in repos with high activity. The chance of hitting a GC that deletes an untracked commit you need is extremely small.
reflog is like undelete in filesystems, it's a probabilistic accident recovery mechanism for an individual computer (repo checkout in this case) that you can try to use if you don't have backups.