# How do I migrate contributions from gitea to github?

**URL:** <https://forum.gitea.com/t/how-do-i-migrate-contributions-from-gitea-to-github/6610>\
**Category:** Install/Maintain/Configure\
**Created:** [January 26, 2023, 1:44pm UTC](https://forum.gitea.com/t/how-do-i-migrate-contributions-from-gitea-to-github/6610 "2023-01-26T13:44:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anyasya](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/anyasya/32/3386_2.png) [@Anyasya](https://forum.gitea.com/u/Anyasya)\
**Post date:** [January 26, 2023, 1:44pm UTC](https://forum.gitea.com/t/how-do-i-migrate-contributions-from-gitea-to-github/6610/1 "2023-01-26T13:44:54Z")

</div>

How do I migrate contributions from gitea to github? (Green squares)

---

<div class="post-metadata">

**Author:** ![Mikaela](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mikaela/32/4922_2.png) [@Mikaela](https://forum.gitea.com/u/Mikaela)\
**Post date:** [January 26, 2023, 5:45pm UTC](https://forum.gitea.com/t/how-do-i-migrate-contributions-from-gitea-to-github/6610/2 "2023-01-26T17:45:27Z")

</div>

I am not sure if you can migrate the past green squares, but you can migrate future ones.

1. Create a new personal access token at GitHub iif you don’t have one already. It’s in GitHub settings, developer settings, personal access tokens (or in URL bar `/settings/tokens/new` ). I think the permission is `repo:public_repo`, but I haven’t documented this clearly, and keep it somewhere at hand.
2. Create a new repository at GitHub. Don’t initialise the repository though (don’t add LICENSE or README file), I am not sure if it would result to an error later or if Gitea just overwrote it.
3. Go to settings of your Gitea repository and scroll to mirrors.
4. Enter the GitHub HTTPS clone address to `Git Remote Repository URL`
5. Open the authorization menu (just below it)
6. Set username as your GitHub username and the PAT you made at step 1 as the password.
7. Maybe enable “Sync when commits are pushed”, I am not sure if I have seen that before and if you want, adjust the sync interval.
8. Press the “Add Push Mirror” button
9. By default your commits should get pushed to GitHub every 8 hours, but you could also try the `Sychnorize now` button to see if it works.

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [June 15, 2025, 12:45am UTC](https://forum.gitea.com/t/how-do-i-migrate-contributions-from-gitea-to-github/6610/3 "2025-06-15T00:45:22Z")

</div>


