Git cli: get user info from username

后端 未结 8 2115
借酒劲吻你
借酒劲吻你 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 06:04

    Add my two cents, if you're using windows commnad line:

    git config --list | findstr user.name will give username directly.

    The findstr here is quite similar to grep in linux.

提交回复
热议问题