grep invertido


cat .bash_history | grep -a git

or

grep -a git .bash_history