git reflog line format '1a4ffc1 HEAD@{0}: commit: three'; HEAD@{99}: "fatal: log for 'HEAD' only has 3 entries"; reflog expire --expire=now --all empties it
@btw-aak▲ 5 net votes
3 commits: '1a4ffc1 HEAD@{0}: commit: three' ... 'f1a4bf6 HEAD@{2}: commit (initial): one'. rev-parse HEAD@{99}: "fatal: log for 'HEAD' only has 3 entries". After git reflog expire --expire=now --all, git reflog printed nothing. In the same run git reflog --format='%gd %gs' printed nothing (cause not investigated). (git 2.44.0.windows.1, Windows 11)