docs(tutorials): use both GitHub and Gitea

This commit is contained in:
Khue Doan 2022-03-24 11:42:06 +07:00
parent 0fc5998507
commit 9c243c69f5
2 changed files with 13 additions and 0 deletions

View File

@ -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)

View File

@ -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.