Git cli: get user info from username

后端 未结 8 2104
借酒劲吻你
借酒劲吻你 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:38

    Try this

    git config user.name
    

    git config command stores and gives all the information.

    git config -l
    

    This commands gives you all the required info that you want.

    You can change the information using

    git config --global user.name ""
    

    Similarly you can change many info shown to you using -l option.

提交回复
热议问题