In this short article, we’ll be exploring some quick git commands that can help us in digging through our repositories’ history of commits. We’ll look at
  1. git log
  2. git shortlog
  3. git show
  4. git rev-list

git log

git log --oneline
git log --name-status
git log --stat
git log -p
git log --author=<author>
git log --grep=<pattern>
git log -S<string>
git log --diff-filter=A <file>
git log --diff-filter=a <file>

git shortlog

git shortlog
 or 
git shortlog -n
git shorlog -s

git show

git show
git show <commit>
git show <commit> --name-status
git show <commit> --stat

git rev-list

git rev-list --count HEAD

Conclusion

We’ve looked at the four different git commands and their respective arguments to help us dig different insights about our git history. You can try these with your own repositories and also explore different combination of arguments, eg:
git log -Sspring-boot-starter-actuator -p
or
git log --name-status --diff-filter=a .gitignore
Hopefully some of these examples can help you in your day to day coding.