I was trying to checkout a previous reflog hash after an accidental hard reset. Exactly for how long can GIT retain the reflog/ commits which were reset or garbage data?
I was trying to checkout a previous reflog hash after an accidental hard reset. Exactly for how long can GIT retain the reflog/ commits which were reset or garbage data?
By default it's 90 days, and you can configure it with gc.reflogExpire.
Also, it doesn't get altered by git reset commands. reflog is your safety net.