Searching your Git logs

Using Multi-Line Command Function in .zshrc to search git logs

·

1 min read

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