Erik B Erik B - 1 month ago 10
Git Question

Can I get git log to print the history in reverse order?

I recently learned that I can get hg log to print the history in reverse order with:

hg log -r :


So of course I tried:

git log -r :


Well, it didn't work. So what is the command to do the same thing in git?

Answer

Use the --reverse option:

git log --reverse