How to see contributor's email address on Git commit chain?
I can’t see how to email a contributor on github after lengthy attempts, and google searches. Why does every beginners guide encourage us to immediately configure our user.email such that it is sent with every commit if its so difficult to view the contributors’ email addresses on the commit chain in GitHub?
2 Solutions collect form web for “How to see contributor's email address on Git commit chain?”
You can use
git show [commit number]
commit 5f3be67saki52cv80l0e4f55c05ec897de3sdgt67 Author: someone <firstname.lastname@example.org> Date: Wed Mar 23 17:10:48 2017 +0100 Commit message
Here is some command to get author and email of the last commit:
git show --format="%aN <%aE>" COMMIT_ID
Here the version for older git versions (<= 1.6)
git log -1 --pretty=format:"%an <%ae>"