From 9c243c69f5c1840146067a79ab2f32c77be680e3 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Thu, 24 Mar 2022 11:42:06 +0700 Subject: [PATCH] docs(tutorials): use both GitHub and Gitea --- docs/src/SUMMARY.md | 1 + docs/src/tutorials/use-both-github-and-gitea.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 docs/src/tutorials/use-both-github-and-gitea.md diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index 749d60c4..6bdd0fa7 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -11,6 +11,7 @@ - [External resources (optional)](./deployment/external-resources.md) - [Troubleshooting](./troubleshooting.md) - [Tutorials]() + - [Use both GitHub and Gitea](./tutorials/use-both-github-and-gitea.md) - [Single node cluster adjustments](./tutorials/single-node-cluster-adjustments.md) - [Add or remove nodes (scale up or down)](./tutorials/add-or-remove-nodes.md) - [Run commands on multiple nodes](./tutorials/run-commands-on-multiple-nodes.md) diff --git a/docs/src/tutorials/use-both-github-and-gitea.md b/docs/src/tutorials/use-both-github-and-gitea.md new file mode 100644 index 00000000..d4f65772 --- /dev/null +++ b/docs/src/tutorials/use-both-github-and-gitea.md @@ -0,0 +1,12 @@ +# Use both GitHub and Gitea + +Even though we self-host Gitea, you may still want to use GitHub as a backup and for discovery. + +Add both push URLs (replace my repositories with yours): + +```sh +git remote set-url --add --push origin git@git.khuedoan.com:ops/homelab +git remote set-url --add --push origin git@github.com:khuedoan/homelab +``` + +Now you can just run `git push` like usual and it will push to both GitHub and Gitea.