“Alias” git authors/committers?

后端 未结 2 688
旧巷少年郎
旧巷少年郎 2020-12-30 20:13

So I\'ve managed to commit to a GitHub project as both domenic and Domenic Denicola

相关标签:
2条回答
  • 2020-12-30 20:57

    Set up a .mailmap file in your repo. See git help shortlog for details, or check out the one for Git itself.

    See Mapping authors section: https://git-scm.com/docs/git-shortlog#_mapping_authors

    0 讨论(0)
  • 2020-12-30 21:06

    If your email used to submit is different than the email associated with your account, you can add the additional email at https://github.com/settings/emails.

    I had this problem when using Source Tree to commit to GitHub. It submits using the name: pcuser@pcFQDN, which is not my email address. Adding this false address to my GitHub account made all of my commits show as me. It does not require that the address be verified.

    0 讨论(0)
提交回复
热议问题