vscode里,git提交时,显示自己设置的本地名称

命令:
$ git config --local user.name ‘your_name’
$ git config --local user.email ‘your_email@domain.com’

--local则表示针对当前仓库有效,不会影响其他代码仓库

config有几个常用参数, 缺省等于local

–local 只对当前仓库有效
–global 对登录⽤户所有仓库有效
–system 对系统的所有⽤户有效
–unset 清除某个信息
git config --unset --local user.name
显示config的配置可以 加 --list
git config --list --local

posted @ 2022-06-09 10:23  小玫瑰  阅读(183)  评论(0编辑  收藏  举报