Digital Marketing

Filtering the Output of git log

 Filter by Range


git log <since>..<until>


git log b78bee8..b53c28e


Filter by Message


git log --grep="important"


Filter by Most Recent


If you want to return a specific number of commits, you can do so using the -n flag. Here’s an example of this flag in action:


git log -n 8


Filter by Author or Committer


git log --author="developer@goyun.info" 


git log --committer="GoYun Info"


Filter by Date


git log --after="2021-8-8"


git log --after="2021-8-8" --before="yesterday"


Filter by File


git log -- main.java


Filter by Content


git log -S"Fixed memory leak"




Comments

Popular posts from this blog

MySQL Sandbox with the Sakila sample database