You would reach for the https://git-scm.com/docs/git-log command when you want to take a look at the list of commits for the Git repository you’re currently in. The command will list all the commits for that repository showing the newest commit first. A typical output for git log would look like so.

So, that’s a repository-wide git log but there comes a time when you want to have logs for a specific piece of code for a specific file.

I can do that by using the git log command with the -L option like so.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners