![Forrest logo](/images/logo.png)
git-log:tldr:88b5b
The command "git log --stat" is used to display the commit history along with the summary of changes (statistics) for each commit.
When you run this command, Git will show a list of commits in reverse chronological order (from the most recent to the oldest), along with some additional information about each commit.
The additional information includes:
- Hash: A unique identifier for each commit, typically a sequence of alphanumeric characters.
- Author: The name and email address of the person who made the commit.
- Date: The date and time when the commit was made.
- Commit message: A brief description of the changes made in the commit.
- File statistics: A summary of changes made to files in that commit.
The file statistics section provides a summary of the changes that were made to the different files in that particular commit. It includes information such as:
- The number of files changed
- The number of lines added and deleted in each file
- The name of the file
This allows you to quickly see which files were modified and get a sense of the overall scale of changes in each commit.
Overall, "git log --stat" is a helpful command to get an overview of the commit history and the changes made to each file in each commit.