# Mirroring to GitHub has the incorrect author on commits

**URL:** <https://forum.gitea.com/t/mirroring-to-github-has-the-incorrect-author-on-commits/2802>\
**Category:** Install/Maintain/Configure\
**Created:** [December 26, 2020, 6:42pm UTC](https://forum.gitea.com/t/mirroring-to-github-has-the-incorrect-author-on-commits/2802 "2020-12-26T18:42:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChxseH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/chxseh/32/1087_2.png) [@ChxseH](https://forum.gitea.com/u/ChxseH)\
**Post date:** [December 26, 2020, 6:42pm UTC](https://forum.gitea.com/t/mirroring-to-github-has-the-incorrect-author-on-commits/2802/1 "2020-12-26T18:42:01Z")

</div>

I hope this is a simple question, I switched domains for Gitea & renamed my GitHub account and somehow along the way I broke the `--mirror` flag, it uses my Gitea info rather then my GitHub info.

 ![My Git Hooks & Commit History](https://i.imgur.com/eAqKZYD.png)

Any ideas?  
Cheers.

---

<div class="post-metadata">

**Author:** ![kpfleming](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kpfleming](https://forum.gitea.com/u/kpfleming)\
**Post date:** [December 26, 2020, 10:38pm UTC](https://forum.gitea.com/t/mirroring-to-github-has-the-incorrect-author-on-commits/2802/2 "2020-12-26T22:38:19Z")

</div>

GitHub associates commits with GitHub user accounts by matching up email addresses. Any commits with email address “user@domain” will show up attached to the user account with that email address in its profile.

This has nothing to do with Gitea, or even with Git. If you’ve changed the GitHub username of the account which has the email address on those commits, GitHub is going to show them associated with the new username.

---

<div class="post-metadata">

**Author:** ![ChxseH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/chxseh/32/1087_2.png) [@ChxseH](https://forum.gitea.com/u/ChxseH)\
**Post date:** [December 27, 2020, 12:22am UTC](https://forum.gitea.com/t/mirroring-to-github-has-the-incorrect-author-on-commits/2802/3 "2020-12-27T00:22:48Z")

</div>

Strange, I haven’t changed emails around.

 ![Img](https://i.imgur.com/f1EeHmr.png)

---

<div class="post-metadata">

**Author:** ![ChxseH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/chxseh/32/1087_2.png) [@ChxseH](https://forum.gitea.com/u/ChxseH)\
**Post date:** [December 27, 2020, 12:36am UTC](https://forum.gitea.com/t/mirroring-to-github-has-the-incorrect-author-on-commits/2802/4 "2020-12-27T00:36:48Z")

</div>

Derp. I turned on `hide email address` in my Gitea profile, which intern set the email to `chase@noreply.localhost`. Turning this back off works as intended.
