Interview Prep/Git & GitHub/Hooks, submodules, LFS and signing

What is `git rev-list --count` and `git shortlog` used for?

IntermediateConceptHooks, submodules, LFS and signing
Answer

rev-list --count returns the number of commits in a range (useful for build numbers or ahead/behind), shortlog -sn ranks authors by commit count.

git rev-list --count origin/main..HEAD
git shortlog -sn --since="3 months ago"
All Git & GitHub questions Roadmap: Git & GitHub

More on Hooks, submodules, LFS and signing