From 3a50ba1e3fed569fe1a83d096569c88934d37869 Mon Sep 17 00:00:00 2001 From: Jean-Michel Tremblay Date: Sun, 5 Jul 2026 21:48:29 -0400 Subject: [PATCH] Configure origin to push to both remotes at once Co-Authored-By: Claude Opus 4.8 (1M context) --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 920236d..6d46609 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,18 @@ Two remotes are configured; GitHub is just a mirror of the Forgejo repo. * `origin` (primary) — `ssh://forgejo@forgejo.jmopines.com:2222/jm/mediapi.git` * `github` (mirror) — `git@github.com:jmtremblay2/mediapi.git` -Push to both with: +`origin` is set up with two push URLs (forgejo + github), so a single +`git push` mirrors to both. Fetch still comes from forgejo only. ```bash -git push origin master -git push github master +git push origin master # pushes to forgejo AND github +``` + +To re-create the dual-push setup on a fresh clone: + +```bash +git remote set-url --add --push origin ssh://forgejo@forgejo.jmopines.com:2222/jm/mediapi.git +git remote set-url --add --push origin git@github.com:jmtremblay2/mediapi.git ``` # AP on the raspberry pi