From da60c8edb1f7da368af6e9ea4cdab6b83ec8a2c7 Mon Sep 17 00:00:00 2001 From: thescalaguy Date: Tue, 27 Mar 2018 12:59:00 +0530 Subject: [PATCH] git-shortlog: add page (#2044) --- pages/common/git-shortlog.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/git-shortlog.md diff --git a/pages/common/git-shortlog.md b/pages/common/git-shortlog.md new file mode 100644 index 000000000..3c074b77f --- /dev/null +++ b/pages/common/git-shortlog.md @@ -0,0 +1,19 @@ +# git shortlog + +> Summarizes the `git log` output. + +- View a summary of all the commits made, grouped alphabetically by author name: + +`git shortlog` + +- View a summary of all the commits made, sorted by the number of commits made: + +`git shortlog -n` + +- View a summary of all the commits made, grouped by the commiter identities (name and email): + +`git shortlog -c` + +- View a summary of the last 5 commits (i.e. specify a revision range): + +`git shortlog HEAD~{{5}}..HEAD`