Want to see changes made by you or some specific user in past commits?

This small command will show past commits by a specific author, only in certain types of files:

glol --author="<author>" --grep="<text-to-look-for>" | awk '{ print $2 }' | xargs -n1 -I {} /bin/bash -c 'git show {} <filename>'

For example, say I want to see my recent changes, but only in Javascript files, and whose commit messages contain the text migration.

glol --author="Roberto" --grep="migration" | awk '{ print $2 }' | xargs -n1 -I {} /bin/bash -c 'git show {} *.js'

PD: glol is an alias command from oh-my-zsh. If you don’t have it, run the following:

alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"

Also, Hello World!. First post :)