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
本文详细讲解了如何使用`gitconfig--local`进行本地设置,`gitconfig--global`进行全局设置,并指导如何查看已有的git账户信息。
1万+

被折叠的 条评论
为什么被折叠?



