Today I Learned

hashrocket A Hashrocket project

Git log => turbo mode

Today I learned that I can combine -S 'my-search' and -p in git log command. Here is an example:

git log -p -S 'create_or' app/models/*.rb

command dissecting:

  • -p => equivalent to git diff for each commit found on log
  • -S 'my-seach' => filtering by commits that add/remove this content
See More #git TILs