Reputation: 161
How can I see the original account email of a commit, if the same account use different profiles? For example my email account is [email protected]
and I make some commits as [email protected]
and [email protected]
by changing the user.email
config property, how can I find the first email? The original author?
Thank you!
Upvotes: 0
Views: 4019
Reputation: 3156
git log -1 382f36447d634425851171358b927ce305e1e9ad --pretty=format:'%an <%aE>'
Antonio Banderas <[email protected]>
Upvotes: 0
Reputation: 1324337
Changing the user.email after creating a commit won't change the author email of past commits.
git log
or git show
can, through a --format:
option show you only the author name and email:
git show --format="%aN <%aE>" COMMIT_ID
Upvotes: 3