iamjawa
iamjawa

Reputation: 129

How to GET Git Commits by User

I would like to know if there is a way using either the GitHub or GitLab (Preferably the latter) API's to get commits by user? e.g To retrieve the last commit made by a user.

Upvotes: 0

Views: 143

Answers (1)

Satya Sudheer
Satya Sudheer

Reputation: 26

git log --author="that user"

--author Only show commits in which the author entry matches the specified string.

https://git-scm.com/book/ch2-3.html

http://dymitruk.com/blog/2012/07/18/filtering-by-author-name/

Upvotes: 1

Related Questions