How to see contributor's email address on Git commit chain?

后端 未结 2 1246
名媛妹妹
名媛妹妹 2021-02-07 10:52

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.emai

相关标签:
2条回答
  • 2021-02-07 11:05

    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>"
    
    0 讨论(0)
  • 2021-02-07 11:16

    You can use

    git log
    

    or

    git show [commit number]
    

    Output:

    commit 5f3be67saki52cv80l0e4f55c05ec897de3sdgt67
    Author: someone <someone@mail.com>
    Date:   Wed Mar 23 17:10:48 2017 +0100
    
        Commit message
    
    0 讨论(0)
提交回复
热议问题