How to git log in reverse order?

Erik B picture Erik B · May 9, 2010 · Viewed 50.4k times · Source

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

Makis picture Makis · May 9, 2010

Use the --reverse option:

git log --reverse