remote: mirror repository is read-only #32

Closed
opened 2026-10-05 01:35:51 +02:00 by adam · 4 comments
Owner

so i mirrored all my remotes, i checked out a repo, maade a branch made some changes and committed them, when i tried to push its saying

remote: mirror repository is read-only

so i mirrored all my remotes, i checked out a repo, maade a branch made some changes and committed them, when i tried to push its saying remote: mirror repository is read-only <!-- github-sync-id:3267615942 -->
adam closed this issue 2026-10-05 01:35:51 +02:00
Author
Owner

@outbackdingo
This is intentional because:

  1. Mirror repositories in Gitea are designed to be one-way syncs from the source
  2. They automatically pull updates from GitHub on a schedule
  3. Making changes directly would cause conflicts when the next sync occurs

You should make updates to Github so that it syncs back to gitea. But if you make changes in gitea and then something chnages in github you will break the auto sync as now we will have conflicts.

If you want to make changes and push them back, you have a few options:

  1. Fork the mirror in Gitea to create a regular repository you can push to
  2. Push changes back to GitHub instead, and they'll sync to Gitea automatically
  3. Convert the mirror to a regular repository (but you'll lose automatic syncing)
@outbackdingo This is intentional because: 1. Mirror repositories in Gitea are designed to be one-way syncs from the source 2. They automatically pull updates from GitHub on a schedule 3. Making changes directly would cause conflicts when the next sync occurs You should make updates to Github so that it syncs back to gitea. But if you make changes in gitea and then something chnages in github you will break the auto sync as now we will have conflicts. If you want to make changes and push them back, you have a few options: 1. Fork the mirror in Gitea to create a regular repository you can push to 2. Push changes back to GitHub instead, and they'll sync to Gitea automatically 3. Convert the mirror to a regular repository (but you'll lose automatic syncing) <!-- github-comment-id:3125818778 -->
Author
Owner

i see, previously we could make changes to repos with mirror-to-gitea, most of the repos we mirror are yes just backup mirror, however we would like to utilize gitea for the working commit side on some repos. which commits would then push back to github, it would be nice if we could mirror all then flag certain repos to not sync both ways, say changes to git sync to gthub.

i see, previously we could make changes to repos with mirror-to-gitea, most of the repos we mirror are yes just backup mirror, however we would like to utilize gitea for the working commit side on some repos. which commits would then push back to github, it would be nice if we could mirror all then flag certain repos to not sync both ways, say changes to git sync to gthub. <!-- github-comment-id:3126282888 -->
Author
Owner

@outbackdingo Will have to think about this and maybe we can come up with something on the UI.

@outbackdingo Will have to think about this and maybe we can come up with something on the UI. <!-- github-comment-id:3126485505 -->
Author
Owner

@outbackdingo Let me know if the latest update helps

@outbackdingo Let me know if the latest update helps <!-- github-comment-id:5515246706 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/gitea-mirror#32