From b6af199508e72f44a9348dfd857d7e7d1808355b Mon Sep 17 00:00:00 2001 From: juls0730 Date: Thu, 16 Oct 2025 22:09:44 +0000 Subject: [PATCH] Clarify Setting up a push mirror from Gitea to GitHub in repo mirror docs (#275) Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/docs/pulls/275 Reviewed-by: Lunny Xiao Co-authored-by: juls0730 Co-committed-by: juls0730 --- versioned_docs/version-1.24/usage/repo-mirror.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-1.24/usage/repo-mirror.md b/versioned_docs/version-1.24/usage/repo-mirror.md index de0e0a1b..7246e6c1 100644 --- a/versioned_docs/version-1.24/usage/repo-mirror.md +++ b/versioned_docs/version-1.24/usage/repo-mirror.md @@ -53,7 +53,7 @@ The repository now gets mirrored periodically to the remote repository. You can To set up a mirror from Gitea to GitHub, you need to follow these steps: -1. Create a [GitHub personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with the *public_repo* box checked. Also check the **workflow** checkbox in case your repo uses GitHub Actions for continuous integration. +1. Create a [GitHub personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with the *public_repo* box checked and make sure the **contents** repository permission is set to read and write. Also check the **workflow** checkbox in case your repo uses GitHub Actions for continuous integration. 2. Create a repository with that name on GitHub. Unlike Gitea, GitHub does not support creating repositories by pushing to the remote. You can also use an existing remote repo if it has the same commit history as your Gitea repo. 3. In the settings of your Gitea repo, fill in the **Git Remote Repository URL**: `https://github.com//.git`. 4. Fill in the **Authorization** fields with your GitHub username and the personal access token as **Password**.