Git Log tricks

The idea here would be to show some git log tricks and to develop the article, whenever I find something more and more worthy. Before starting this one, please remember that exiting vim editors in the command prompt is with :q.

  • Git Log with only 5 last commits

  • Git Log with all commits since 2022

  • Have everything important on 1 line, like a story

  • Git Log with all commits affecting a specific file from the repository

  • History of all commits of a git file

  • Grouping by author

  • Searching through commits, for a specific word

returning this:

That’s all folks! 🙂

Tagged with: , , , ,