Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Reversed git log

I use git log -p a lot.

git log shows all the commits and messages in descending order and the -p flag includes the code that changed.

It helps me understanding why some changes happened in the codebase, to search when things got included and more.

Recently I wanted to actually see the history from the beginning and guess what, there’s a flag for that:

git log -p --reverse