Search code examples
gitgit-log

How to git log 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?


Solution

  • Use the --reverse option:

    git log --reverse