Counting All Git Commits from All Authors and More with Git Shortlog

Опубликовано: 28 Сентябрь 2024
на канале: Nick Janetakis
1,307
34

Answer questions like who committed to this repo and who are the active contributors.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/counti...
► https://snyk.io/plans/
► https://github.com/nickjj/docker-rail...
► https://git-scm.com/docs/pretty-formats

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

► https://nickjanetakis.com/courses/

THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...

FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter:   / nickjanetakis  
► GitHub: https://github.com/nickjj

TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:24 -- This can be useful for a few use cases
1:50 -- Running git shortlog to see info about all committers in a branch
2:17 -- The all flag runs it against all branches
3:11 -- Showing only non-merge commits
3:37 -- Showing only merge commits (typically PRs)
4:15 -- Only showing the commit author and count with a summary
4:58 -- Filtering the output by author
5:17 -- Filtering by date using the before and since flags
8:03 -- Showing a custom format with the date, git hash and commit message
9:34 -- Visualizing contributor stats on GitHub and GitLab
10:19 -- I still use the command line for quickly finding these stats