赞
踩
查看项目的局部配置,在项目目录下运行:
git config user.name
git config user.email
查看全局配置:
git config --global user.name
git config --global user.email
局部配置,在项目目录下运行命令:
git config user.name "账户"
git config user.email "邮箱"
全局配置:
git config --global user.name "账户"
git config --global user.email "邮箱"
如果设置了局部,那么该项目会使用局部。所以在管理本地项目代码和公司代码可以进行分开设置。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。