Elektrine lite

← Feed

@jakintosh@merveilles.town

Post #1474465

2026-04-19 22:27 UTC

today i learned about `git remote set-url <remote> --add --push <url>`, which lets you add multiple push urls to a single remote. makes it a lot easier to set up multiple forges to push to for redundancy purposes, without having to have multiple remotes. just set up a few push urls, and "git push" sends it off to all of them.

Replies (3)

  • @jakintosh@merveilles.town 2026-04-19 22:29

    makes me feel a lot better about leaning into my self hosted forge (and sourcehut's frequent ddos issues) if I can just be pushing automatically to multiple sources

    Open ##3237613

  • @mro@digitalcourage.social 2026-04-20 07:29

    Hi @jakintosh@merveilles.town, #thanks for sharing, I do similar pushing to a dumb ssh store first and `git push --mirror` on `hooks/post-receive` from there. Saves upstream bandwidth which is scarce here. https://blog.mro.name/2024/10/scaling-infrastructure/#ssh Nice to know alternatives, however.

    Open ##3237614

  • @csepp@merveilles.town 2026-04-20 13:10

    @jakintosh@merveilles.town Oh dang. I wonder if it works with #Radicle remotes. :moomin_hmm: Not sure if those are just URLs with some user/system level git config magic, or if the magic lives in each repo's individual config.

    Open ##3237615