Setting up a push mirror from Codeberg to GitHub

  1. Go to "Developer settings" on GitHub.

  2. Click "Personal access tokens".

  3. Click "Tokens (classic)".

  4. Click "Generate new token".

  5. Click "Generate new token (classic)".

  6. Create a personal access token with the public_repo box checked.

    required: Note, Expiration

  7. Copy personal access token.

  8. Create a repository on GitHub.

  9. In the settings of your Codeberg repo, fill in the Git Remote Repository URL: https://github.com/<your_github_group>/<your_github_project>.git.

  10. Click "Authorization".

  11. Fill in the Authorization fields with your GitHub username and the personal access token as Password.

  12. Select Sync when new commits are pushed so that the mirror will be updated as well as soon as there are changes. You can also disable the periodic sync if you like.

    Click "Add Push Mirror" to save the configuration.