Git 学习笔记
Git 学习笔记

配置user信息

标识提交信息的用户

git config --global user.name "你的user name"
git config --global user.email "你的user email"

config的3个作用域

DANGER

--system 用的非常少,几乎不用

git config --local		#只对某个仓库有效
git config --global   #对当前用户所有仓库有效
git config --system   #对系统登录的所有用户有效

如果想要查看作用于中的配置,可以使用 --list

--local 需要再仓库中使用

git config --list --local			#查看某个仓库的配置
git config --list --global		#查看当前用户所有仓库的配置
git config --list --system		#查看系统登录的所有用户的配置