当前位置:   article > 正文

Git步步进阶---Git修改和配置本地用户名和邮箱_"run git config user.name \"chuck\" [develop f53da

"run git config user.name \"chuck\" [develop f53da49] generated image new tag 1"

git在push/push to时需要使用到user.name和user.email,切记一定要现配置好

查看user.name/user.email

  1. git config user.name
  2. git config user.email

查看所有配置信息

git config --list

配置user.name/user.email

  1. git config user.name "newName"
  2. git config user.email "newEmail"

加上--global可以全局修改,否则仅在本git-repo生效。
配置全局user.name/user.email

  1. git config --global user.name "your user name"
  2. git config --global user.email "your user email"

这里需要注意的是,该命令只能用于初次配置user.name/email,如果不小心配置错误,或者重复配置,不可以通过重复执行以上命令来修改user.name/email,否则可能或报错说无法重复配置,或者导致一个key配置了多个value。

修改user.name/user.email

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/385554
推荐阅读
相关标签
  

闽ICP备14008679号