Is there a cross-platform fork system? #2083

Closed
opened 2025-11-02 04:23:36 -06:00 by GiteaMirror · 11 comments
Owner

Originally created by @Wqrld on GitHub (Jul 21, 2018).

Is it possible to import a repo from github and keep it synced? For example if i want to fork a project on github to my gitea instance.

Originally created by @Wqrld on GitHub (Jul 21, 2018). Is it possible to import a repo from github and keep it synced? For example if i want to fork a project on github to my gitea instance.
GiteaMirror added the type/question label 2025-11-02 04:23:36 -06:00
Author
Owner

@Wqrld commented on GitHub (Jul 21, 2018):

This would also require adding
https://github.com/go-gitea/gitea/issues/2488

@Wqrld commented on GitHub (Jul 21, 2018): This would also require adding https://github.com/go-gitea/gitea/issues/2488
Author
Owner

@jonasfranz commented on GitHub (Jul 21, 2018):

You can create a mirror of the GitHub repo.

@jonasfranz commented on GitHub (Jul 21, 2018): You can create a mirror of the GitHub repo.
Author
Owner

@Wqrld commented on GitHub (Jul 21, 2018):

Oh, is see, it seems like "mirror" was mistranslated to "kopie" for me

@Wqrld commented on GitHub (Jul 21, 2018): Oh, is see, it seems like "mirror" was mistranslated to "kopie" for me
Author
Owner

@Wqrld commented on GitHub (Jul 21, 2018):

Mirrors are read only, i want to have a fork (if possible on gitea)with which i can pull commits from a upstream repo(on github)

(maybe let people make new branches or fork mirrorred repos)?

@Wqrld commented on GitHub (Jul 21, 2018): Mirrors are read only, i want to have a fork (if possible on gitea)with which i can pull commits from a upstream repo(on github) (maybe let people make new branches or fork mirrorred repos)?
Author
Owner

@stale[bot] commented on GitHub (Jan 16, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 16, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@vsund commented on GitHub (Jan 29, 2019):

Would love to see this 👍 also I hereby dislike the automated stale bot :)

@vsund commented on GitHub (Jan 29, 2019): Would love to see this 👍 also I hereby dislike the automated stale bot :)
Author
Owner

@zeripath commented on GitHub (Jan 29, 2019):

Can't you just mirror the GitHub as say upstream-mirror and then pull from that mirror?

@zeripath commented on GitHub (Jan 29, 2019): Can't you just mirror the GitHub as say upstream-mirror and then pull from that mirror?
Author
Owner

@techknowlogick commented on GitHub (Jan 29, 2019):

Yes, you can create a fork of a mirror locally. Closing this as federation is being handled in another issue.

@techknowlogick commented on GitHub (Jan 29, 2019): Yes, you can create a fork of a mirror locally. Closing this as federation is being handled in another issue.
Author
Owner

@vsund commented on GitHub (Jan 29, 2019):

Oh right, forking a local mirror works for this. This request would make the step of first creating a mirror and then forking it a little bit easier (as you would directly add an external repository as fork reference).

I'm fine with it as it is, but would still be nice to make the process of updating forks easier. This would need to go along with https://github.com/go-gitea/gitea/issues/2488.
In the end you would be able to fork an external repository into your local Gitea instance and keep it synced with a little button (as proposed in https://github.com/go-gitea/gitea/issues/2488).

Sure, first mirroring and then forking it would still work for this, but directly having an external repository as fork reference would skip having an extra repository.

Additionally this might already count as federation. Maybe these are some low-hanging fruits to start with?

@vsund commented on GitHub (Jan 29, 2019): Oh right, forking a local mirror works for this. This request would make the step of first creating a mirror and then forking it a little bit easier (as you would directly add an external repository as fork reference). I'm fine with it as it is, but would still be nice to make the process of updating forks easier. This would need to go along with https://github.com/go-gitea/gitea/issues/2488. In the end you would be able to fork an external repository into your local Gitea instance and keep it synced with a little button (as proposed in https://github.com/go-gitea/gitea/issues/2488). Sure, first mirroring and then forking it would still work for this, but directly having an external repository as fork reference would skip having an extra repository. Additionally this might already count as federation. Maybe these are some low-hanging fruits to start with?
Author
Owner

@Cyber1000 commented on GitHub (Jul 6, 2019):

Sorry to add to this thread, but how to fork locally? I can make a mirror of a github-project, but I can't fork this mirror in gitea, it says "forking is not allowed, because I own this repo already" (or similiar, I'm using german, so I don't know the exact english message). Do I need to use 2 gitea-user accounts for myself, one that mirrors github and on that forks from that mirror?

Thanks!

@Cyber1000 commented on GitHub (Jul 6, 2019): Sorry to add to this thread, but how to fork locally? I can make a mirror of a github-project, but I can't fork this mirror in gitea, it says "forking is not allowed, because I own this repo already" (or similiar, I'm using german, so I don't know the exact english message). Do I need to use 2 gitea-user accounts for myself, one that mirrors github and on that forks from that mirror? Thanks!
Author
Owner

@lafriks commented on GitHub (Jul 6, 2019):

@Cyber1000 create new organization (let's say github) and add all mirrors under it. Than you won't be owner of that mirror and you will be able to fork mirror under your own user

@lafriks commented on GitHub (Jul 6, 2019): @Cyber1000 create new organization (let's say `github`) and add all mirrors under it. Than you won't be owner of that mirror and you will be able to fork mirror under your own user
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2083