I have a personal project that I wanted to push to both tangled.sh (self-hosted) and GitLab. In case something happened to my personal homelab and backups.

You can do this but adding another remote i.e. 1:

snippet.sh
git remote set-url --add --push origin git@gitlab.com:hmajid2301/go-routinely.git
bash 1 line
"snippet.sh" 1L

Make sure to add both repositories with this command

Then when you go git push it will push to all repositories.

You can double check with:

snippet.sh
goroutinely on  fix/ci [$] via 🐹 v1.25.5 via ❄  impure (nix-shell-env)
❯ git remote show origin
Welcome to this knot!
* remote origin
  Fetch URL: git@git.haseebmajid.dev:majiy00.tngl.sh/go-routinely
  Push  URL: git@git.haseebmajid.dev:majiy00.tngl.sh/go-routinely
  Push  URL: git@gitlab.com:hmajid2301/go-routinely.git
  HEAD branch: main
bash 8 lines
"snippet.sh" 8L