有的时候我们有两个甚至多个git账号(公司的git账号和自己的github),为了不混淆提交,我们需要在提交之前查看自己的git账号必要时进行切换。

查看当前git用户名: git config user.name
查看当前git邮箱: git config user.email
切换git用户名: git config --global user.name "user name"
切换git邮箱: git config --global user.email  "e-mail"

相关文章:

  • 2021-09-03
  • 2021-10-18
  • 2021-11-12
  • 2021-07-23
  • 2021-05-31
  • 2020-03-16
  • 2021-03-31
  • 2021-07-02
猜你喜欢
  • 2021-11-06
  • 2021-07-11
  • 2021-11-20
  • 2021-12-09
  • 2021-12-05
  • 2021-11-22
  • 2021-11-06
  • 2021-09-27
相关资源
相似解决方案