Files
hd-commerce/MIRROR.md
T

29 lines
1.1 KiB
Markdown

# Spiegelung nach GitHub
Dieses Repo lebt primär auf Gitea (`git.heidrich-digital.de/till/hd-commerce`). So spiegelst du es nach GitHub.
## Option A — Gitea Push-Mirror (empfohlen)
1. In GitHub ein leeres Repo `hd-commerce` anlegen (ohne README/License).
2. In GitHub einen **Personal Access Token** (Scope `repo`) erstellen.
3. In Gitea: **Repo → Einstellungen → Mirror-Einstellungen → Push-Mirror hinzufügen**
- Git-Remote-URL: `https://github.com/<user>/hd-commerce.git`
- Authorization: GitHub-Username + PAT als Passwort
- Intervall z. B. `8h`, „Beim Push synchronisieren" aktivieren.
4. „Jetzt synchronisieren" — ab jetzt pusht Gitea automatisch nach GitHub.
## Option B — manuell per zweitem Remote
```bash
git remote add github https://github.com/<user>/hd-commerce.git
git push github main
```
Für künftige Pushes auf beide Remotes:
```bash
git remote set-url --add --push origin https://git.heidrich-digital.de/till/hd-commerce.git
git remote set-url --add --push origin https://github.com/<user>/hd-commerce.git
git push origin main # geht jetzt an beide
```