How to navigate git reflog in reverse order?

130 Views Asked by At

For git log, we have git log --reverse to navigate logs in the reverse order, but I tried git reflog --reverse, it returns fatal: options '--reverse' and '--walk-reflogs' cannot be used together. Is there any way to navigate git reflog in reverse order?

1

There are 1 best solutions below

3
knittl On

Most systems have tac available. Since the reflog is a flat list (and not a graph), you could simply reverse the list output:

git reflog | tac