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