4 ms·
Only if you never commit and then do checkout -f / reset --hard. Why would you be doing that? Otherwise it's still in reflog. Anything you ever commited is jus
by guard-of-terra 10y ago
Only if you never commit and then do checkout -f / reset --hard. Why would you be doing that?
Otherwise it's still in reflog. Anything you ever commited is just there.
- mnarayan01 10y agoUnreachable references will be pruned after 30 days (by default) if/when git-gc gets run (which will occasionally happen automatically by default). Not saying it's a problem, just note that they're not actually there forever.
- lomnakkus 10y agoFor reflog it's 90 days. (So anything referenced by the reflog will be retained for that long.)
- mnarayan01 10y agoAFAICT, for unreachable entries (e.g. as generated by `git commit --amend`) the default is 30 days as defined by `gc.reflogExpireUnreachable`.
- gergoerdi 10y agoNo, because those commits are still reachable from the reflog.