From the course: Git: Branches, Merges, and Remotes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Filter the commit log

Filter the commit log

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

Filter the commit log

- [Instructor] One of the commands in git that you're going to use the most often, is the log. In this movie, I want us to talk about how you can filter the commit log in order to find the results that you're looking for. We already know the basic git log command. git log, and then it returns a list of the commits, going backwards in time with the newest commit at the top and the very first commit at the very end. It also puts it into a pagination program. You can see that colon to the bottom of the screen, letting us know that there's more results. We can type a space or an F to go forward to the next page. B to go backwards or Q to quit out of it. By default we're seeing all of the results that are in the log, throughout the entire project. Now let's talk about how we can filter those results. The simplest filter is just simply to limit the number of commits that we're seeing. We can use git log space and then a dash…

Contents