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
You don't need to type --reverse all the time, nor do you need a bash function. You can just create a git alias. Open up your favorite text editor and open up your global .gitconfig file. It's usually found in your home directory.
Navigate to or create a section like this:
[alias]
lg = log -10 --reverse
That creates a git alias that grabs the ten most recent commits then reverses that list so the most recent of those 10 is at the bottom. Now you can simply run:
git lg