Git view commit history
Posted by SceDev
Last Updated: February 09, 2024

To view the commit history of a git repository, use the git log command.

git log

 

Options can be added to the git log command to customize the output.

 

Shows the difference introduced in each commit.

git log --patch

 
Gives some abbreviated stats for each commit.

git log --stat 


Lists the commits made in the last four days.

git log --since=4.days


Prints each commit on a single line.

git log --oneline
Related Content
Git add and commit files
Git add and commit files
SceDev | Feb 04, 2024
How to initialize a new git repo
How to initialize a new git repo
SceDev | Feb 06, 2024
Delete a file from a git repository
Delete a file from a git repository
SceDev | Feb 08, 2024