Photo by Bohdan Stocek on Unsplash
Searching your Git logs
Using Multi-Line Command Function in .zshrc to search git logs
Play this article
Add the following function to your .zshrc file & then source ~/.zshrc
This search is case insensitive
function gsearch(){
git log -3 -i --grep="$1" --pretty=format:'%h %s [%an]'
}
Usage :
gsearch wip