1、--local: 本地设置(仅对当前仓库有效)
git config --local user.name “你的名称”
git config --local user.email “你的邮箱”
2、--global 全局设置(对当前用户的所有仓库有效)
git config --global user.name “你的名称”
git config --global user.email “你的邮箱”
3、查看配置(查看已配置的git账户信息)
git config -list --loacal
git config -list --global
版权归原作者 鲨鱼辣椒不吃辣c 所有, 如有侵权,请联系我们删除。