Forrest logo
back to the git tool

git-shortlog:tldr:3e708

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

The command "git shortlog -sne" is used in Git to generate a summarized and sorted list of contributors, showing the number of commits made by each contributor. Here is a breakdown of each part of the command:

  • "git": Refers to the Git version control system.

  • "shortlog": Is the command used to generate a summarized changelog of Git commits, grouped by author.

  • "-s": Stands for "summary". It provides a condensed summary output, showing only the number of commits made by each contributor.

  • "-n": Sorts the list in descending order, based on the number of commits. Contributors with more commits will be listed first.

  • "-e": Displays the email addresses of contributors alongside their names. This is helpful when you want to contact contributors or identify them uniquely.

So when you execute the command "git shortlog -sne", Git will analyze the commit history of the repository and provide a list of contributors, showing the number of commits made by each contributor, sorted in descending order, along with their names and email addresses.

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