Pretty Git log

Are you tired of scrolling page through page in your terminal to see your Git log? I am. So I did some googling and found a really great fix for this!
The magic snippet
git log — graph — pretty=format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset’ — abbrev-commit
Try it! This is the result.

Looks great, doesn’t it? But it’s really a lot to remember and type. How about getting the same result just by writing “git lg”?
Add it as an alias
git config — global alias.lg “log — color — graph — pretty=format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset’ — abbrev-commit”
Use it
Now just write “git lg” and enjoy the pretty git log!