Forrest logo
back to the git tool

git-shortlog:tldr:93a5b

git-shortlog: View all users, emails and the number of commits in all branches.
$ git shortlog -sne --all
try on your machine

The command "git shortlog -sne --all" is used to generate a summarized list of all the contributors and their commit counts in a Git repository, including those from all branches and tags. Here's a breakdown of the command: - "git shortlog" generates a summarized list of commits, grouped by author.

  • "-s" or "--summary" option displays only the number of commits by each author, without listing the commit messages. - "-n" or "--numbered" option sorts the authors based on the number of commits in descending order. - "-e" or "--email" option displays the email address of each author in the output. - "--all" option includes commits from all branches and tags, rather than just the current branch. Overall, running this command will provide you with a summary of all the contributors in the repository, along with their email addresses and the number of commits they have made.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool