To see the list of commits by a particular author in git, you can use “git log –author”. Below is a hands-on example of the same.
We issue here command git log –author=”Code Version” to get all the list of commits by author “Code Version”. Note that it is a pattern-matching name, meaning it will match any authors with “Code Version” in their name.
~/repoone$ git log --author="Code Version" commit 4632c0d520218e90d6f6645e80773d9b7e8ab0f7 (HEAD -> main, origin/maincopy) Author: Code Version Master <email@example.com> Date: Sat Sep 24 13:04:50 2022 +0000 Adding empty directory commit 908d6ac779f38123751ddd70d6107bb43cc832a1 (origin/main, origin/HEAD) Author: paperspace <Code Version Master> Date: Sat Sep 10 05:15:28 2022 +0000 Third commit in main commit 42296d0c4e8f0a61f3948dab14f1518a1a05b348 Author: paperspace <Code Version Master> Date: Sat Sep 10 05:14:40 2022 +0000 Second commit in main commit 453424edeed5c7c668cf7ce5d9f3b4ccb9aa566e Author: paperspace <Code Version Master> Date: Sun Sep 4 17:43:08 2022 +0000 This is first commit