赞
踩
git在push/push to时需要使用到user.name和user.email,切记一定要现配置好
查看user.name/user.email
- git config user.name
- git config user.email
查看所有配置信息
git config --list
配置user.name/user.email
- git config user.name "newName"
- git config user.email "newEmail"
加上--global
可以全局修改,否则仅在本git-repo生效。
配置全局user.name/user.email
- git config --global user.name "your user name"
- git config --global user.email "your user email"
这里需要注意的是,该命令只能用于初次配置user.name/email,如果不小心配置错误,或者重复配置,不可以通过重复执行以上命令来修改user.name/email,否则可能或报错说无法重复配置,或者导致一个key配置了多个value。
修改user.name/user.email
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。