Git cli: get user info from username

后端 未结 8 2077
借酒劲吻你
借酒劲吻你 2020-12-14 05:24

Is there a way to get the name of the user, given only their username?

Something like this output git show (I know this doesn\'t work)<

8条回答
  •  囚心锁ツ
    2020-12-14 05:47

    Use this to see the logged in user (the actual git account):

    git config credential.username
    

    And as other answers the user email and user name (this is differenct from user credentials):

    git config user.name
    git config user.email
    

    To see the list of all configs:

    git config --list
    

提交回复
热议问题