Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all commit messages in a repo by one author?

Tags:

git

How can I retrieve a list of all commit messages in a git repo for a given commit author?

like image 932
ericsoco Avatar asked Dec 05 '14 20:12

ericsoco


People also ask

What is the command to view all the commits made by a specific person?

The git log command displays all of the commits in a repository's history.

How do I see all commit messages in git?

The most basic and powerful tool to do this is the git log command. By default, with no arguments, git log lists the commits made in that repository in reverse chronological order; that is, the most recent commits show up first.

Which command is used to check last 5 commits by a particular author?

The git shortlog command is a special version of git log intended for creating release announcements. It groups each commit by author and displays the first line of each commit message.


1 Answers

git log --all --author <author regex>

Easy to work out by reading the documentation. Note that it's a regex, so some characters may need escaped.

like image 127
Biffen Avatar answered Oct 04 '22 17:10

Biffen