Just add the parameter –n
to
your earlier command.
git shortlog –n
You should see an output as shown in the following screenshot:
By adding the –n
(numbered) parameter, what you have is an output that is weighted based on the number of commits instead of alphabetical ordering.
Now that we have got the idea, let's quickly run through the remaining parameters which we can put to use. To get metadata such as the e-mail of the author appended to the existing output, we shall use the –e
parameter.
git shortlog -e
You can expect an output as shown in the following screenshot:
Wondering how you can quickly get the number of stages/commits that the repository has gone through from different users? Allow me to introduce the -s
parameter, which should give us the count history for each user.
git shortlog –s
To summarize the parameters with their functions, refer to the following tabulation:
Parameter |
Action description | |
---|---|---|
Short form... |