mpellegr February 2016

Viewing expired reflog logs

Is there any way to view expired reflogs? I've been keeping a few local commit I made months ago on a local branch and I've kept it up to date with our remote branch by rebasing frequently. Somehow I've lost all of my local commits for this branch and have no way to recover it since git reflog is not showing logs past a certain date.

Answers


vgoff February 2016

Once the reflogs are expired, they are removed from the reflog. So you would not see them in the reflog, as is by design.

See man git-reflog


the flash February 2016

The "expire" subcommand prunes older reflog entries. Entries older than expire time, or entries older than expire-unreachable time and not reachable from the current tip, are removed from the reflog. This is typically not used directly by end users.

Post Status

Asked in February 2016
Viewed 2,533 times
Voted 10
Answered 2 times

Search




Leave an answer