![Forrest logo](/images/logo.png)
git-summary:tldr:eee12
The "git summary --dedup-by-email" command is used to generate a summary of the git commit history, where commits are deduplicated by their associated email addresses.
In a git repository, each commit is associated with an author who has an email address. By default, the "git summary" command displays the commit history with each commit's author and the number of commits made by that author.
However, when the "--dedup-by-email" flag is used with the "git summary" command, it groups the commit history based on the email addresses of the authors. This means that if multiple commits were made by the same author with the same email address, they will be combined and displayed as a single entry in the summary, along with the total number of commits made by that author.
This is useful when you want to get a consolidated overview of the commit history, especially when multiple developers may have made commits under different names but with the same email address.