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.
This would also require adding
https://github.com/go-gitea/gitea/issues/2488
You can create a mirror of the GitHub repo.
Oh, is see, it seems like "mirror" was mistranslated to "kopie" for me
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)?
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.
Would love to see this 馃憤 also I hereby dislike the automated stale bot :)
Can't you just mirror the GitHub as say upstream-mirror and then pull from that mirror?
Yes, you can create a fork of a mirror locally. Closing this as federation is being handled in another issue.
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?
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 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
Most helpful comment
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)?