Git-garbage retention time

Viewed 60

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?

1 Answers

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.

Related