查看用户及设置全局用户

git全局设置用户
git config --global user.name 'xxx'
git config --global user.email 'xxxx@163.com'

查看当前用户
$ git config --get user.name
xxx
$ git config --get user.email
xxxx@163.com

posted on 2025-04-01 09:46  nitianxiaozi  阅读(10)  评论(0)    收藏  举报

导航