history command built into the Linux shell, you can do that with ease.
$ history
...
396  git pull --all
397  git branch -a
398  git push origin :header-revamp
399  git branch -a
400  git push origin :nav-dropdown
401  git branch -d nav-dropdown
402  git fetch -p origin
403  git branch -a
404  git checkout front-page
405  git branch --unset-upstream
406  git checkout develop
...
grep command.
$ history | grep ssh
482  ssh
492  ssh -p xxxx [email protected]
702  ssh -p xxxx [email protected]
770  ssh -p xxxxContinue reading this article 
by subscribing to our newsletter.
Subscribe nowby subscribing to our newsletter.
 
                                
                 
                                                             
                                                            