search

Home  >  Q&A  >  body text

提交到github时弄错了user.mail该怎么办

如题,我第一次push时(或者是commit时?)没有设置邮件,结果git用了ubuntu系统默认的邮件xx@ubuntu.ubuntu-domain,然后不管push几次,我的contributions都是0次,已经通过git config --global user.mail "xx@gmail.com"更改邮件了还是不行

过去多啦不再A梦过去多啦不再A梦2863 days ago806

reply all(5)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-04-27 09:05:15

    Change this file directly on the project homepage.git/config

    reply
    0
  • 漂亮男人

    漂亮男人2017-04-27 09:05:15

    Use git config user.email设置一下特定项目的email配置即可,全局设置加上--glbbal parameters. If you want GitHub's contributions to be displayed, just add the original submitted email in Settings > Email.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-27 09:05:15

    It turns out it’s me who’s stupid, I guessuser.email

    reply
    0
  • 为情所困

    为情所困2017-04-27 09:05:15

    After modification, you can check whether the modification is successful through the command
    The command is: git config --list

    reply
    0
  • 黄舟

    黄舟2017-04-27 09:05:15

    Global settings: git config --global user.email
    A certain warehouse: git config --local user.email

    reply
    0
  • Cancelreply