Gitea PushToGitHub

Overview

Some of my projects are linked to Netlify hosting platform and they are deployed when a commit is done on my GitHub Repository. Because of this I need to push some repositories to GitHub to reflect my updates. The process is a little bit different from what I do to backup all my repos to my backup gitea instance. Note : the Backup instance is only there as a readonly, in case I need to access my repo when my main instance is down (if it ever happens).

Recipe

Use a Personal API Token to Authenticate.

Log Into GithHub. Click on user Icon and click on Settings. In the Profile Page, click on Developer Settings (bottom left). Then select one of the Personal Access Tokens options.

The token generate is used to fill in the password in Gitea mirror. The username is the github username (email).

References

Gitea how to Mirror a Repository to GitHub Git Hub Personal Access Tokens