Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider mirroring repos to Codeberg #16

Closed
throwaway-d opened this issue Dec 29, 2022 · 17 comments
Closed

Consider mirroring repos to Codeberg #16

throwaway-d opened this issue Dec 29, 2022 · 17 comments

Comments

@throwaway-d
Copy link

Hello @ltguillaume We should mirror our repos to Codeberg because:

  1. Codeberg is libre, free, open-source, privacy-friendly, non-profit
  2. GitHub is privacy-invasive, proprietary
  3. People on Codeberg like me can contribute to the project
  4. GitHub can take down your repos

Here are some sources for you:

  1. https://sfconservancy.org/GiveUpGitHub
  2. Github is not humane tech. Move this to a freedom-respecting place humanetech-community/awesome-humane-tech#33
  3. leave Github ungoogled-software/ungoogled-chromium#1894
  4. https://cadence.moe/blog/2022-07-03-git-forge-opinions-github-gitlab-gitea-sourcehut
  5. Migration to independent platform for provision of source code andersju/webbkoll#35
  6. https://docs.codeberg.org/advanced/migrating-repos

FAQ

  1. Q: - GitHub Actions -- this is a huge time saver for me
    - Forcing all contributors to modify their current setup and move to another hosting -- we may just lose contributors in the end

    A: As I said, we only just mirror. The repo will be available and contributable on both sites.

  2. Q: - Transferring issues -- is this possible? Issues here represent a technical knowledge base we can't live without
    - Transferring wiki and all edit history -- possible?

    A: Yes, it is possible.
    a. Example for issues:

b. Example for commits:

c. Example for wiki:

  1. Q: Despite having mirror/s, the project will still continue to be operated from GitHub for development, so having yet another mirror doesn't solve anything.

    A: You can create issues, contribute, view the repos on there without going to GitHub! Example:

  1. Q: How does Codeberg mirror comments from GitHub?

    A: It uses Access Token.
    image

  2. Q: My repos are very bandwidth-intensive projects, and I have my doubts as to whether the owner(s) of Codeberg would be prepared for such a massive bandwidth rate increase. I've also had individual projects be disabled on small sites before due to taking too much bandwidth.

    A: Oh.. I think you should directly ask https://docs.codeberg.org/contact/ about if they are ready for massive bandwidth rate increase.

@throwaway-d
Copy link
Author

But nothing happened and no discussion at all?

@ltguillaume
Copy link
Owner

I was looking at the account and considered it to be a bit spammy to my taste. But rest assured, I was already looking into this.

I found this as a template, but I have to figure out how the .gitconfig example actually does its job before applying it.

@throwaway-d
Copy link
Author

throwaway-d commented Dec 29, 2022

spammy

Yeah, I also felt so. I just copied content from my other issues to here because there’s nothing to change really. How can I make it less spammy-feeling? Appreciate any suggestions for writing issues! Thank you for still talking to me at least explaining instead of fully ignoring even if I asked why ignore like some other repo owners.

But rest assured, I was already looking into this.

I found this as a template, but I have to figure out how the .gitconfig example actually does its job before applying it.

Thank you for taking a look at this! Here is another project that mirrored to Codeberg (I convinced the owner successfully): https://github.com/nesaku/BiblioReads You can look at it as an example of how to mirror to Codeberg

@ltguillaume
Copy link
Owner

ltguillaume commented Dec 29, 2022

Well, first, use a different account name. Second, keep it short. You can put the nfo you've gathered in a wiki or something (here or on Codeberg), then:

  1. Explain in 1 or 2 sentences the rationale to migrate or mirror
  2. Link to 1 or 2 sources for (1)
  3. Then link to a single tutorial that explains how to migrate or mirror.
  4. Add a link the info you've already gathered and posted here.

As far as I know there is no use whatsoever to show me or other devs repos that already mirrored to Codeberg as examples, because it doesn't show how to do so.

@throwaway-d
Copy link
Author

Well, first, use a different account name. Second, keep it short.

Changed! Thanks!

@throwaway-d
Copy link
Author

You can put the nfo you've gathered in a wiki or something (here or on Codeberg)

Done! Thanks!
https://codeberg.org/HexagonCDN/Mirroring_repos_to_Codeberg

@throwaway-d
Copy link
Author

Then link to a single tutorial that explains how to migrate or mirror.

It's still in WIP

@throwaway-d
Copy link
Author

As far as I know there is no use whatsoever to show me or other devs repos that already mirrored to Codeberg as examples, because it doesn't show how to do so.

I mean they are using a workflow to mirror to Codeberg and I think you could look at it: https://github.com/nesaku/BiblioReads/blob/main/.github/workflows/codeberg-mirror.yml

@ltguillaume
Copy link
Owner

ltguillaume commented Jan 3, 2023

https://codeberg.org/ltGuillaume

@throwaway-d I just migrated via the Codeberg UI, then added a remote url to origin for my local Git repos, so in this case git remote set-url --add origin https://codeberg.org/ltGuillaume/LibreWolf-WinUpdater.git. This way any commits get pushed to Codeberg, too.

But fetching only happens from GitHub, so it's probably not the best way (getting merge request from Codeberg won't be possible), so I guess I'd have to rethink this.

@throwaway-d
Copy link
Author

When you figure out, please tell me so I can add it to the tutorial on my repo!

@throwaway-d
Copy link
Author

https://github.com/libredirect and https://github.com/zyachel have been mirroring their repos to Codeberg for a very long time. Maybe we should ping them and ask for help?

@throwaway-d
Copy link
Author

@ltguillaume
Copy link
Owner

Thanks, yeah, looks good!

@throwaway-d
Copy link
Author

When it works, please tell me! :D

@ltguillaume
Copy link
Owner

ltguillaume commented Mar 3, 2023

Just thought you'd want to know that a week ago I started using Codeberg as primary remote (my local repo only syncs to Codeberg) and I now let Codeberg sync to GitHub with access tokens.

@throwaway-d
Copy link
Author

Great!

@throwaway-d
Copy link
Author

Thank you for informing me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants