This is really a reply to hacker's comment on the answer from ghills, but it got a bit long, and SO didn't like me putting a bunch of code in a comment.
...or you could use a name other than "origin". For instance, I have a repository in which my "master" branch pushes to one github repo, and the "hacking" branch pushes to another.
In .git/config, I have this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:xiongchiamiov/fourU.git
[branch "hacking"]
remote = origin
merge = refs/heads/hacking
[remote "main"]
url = [email protected]:xyztextbooks/fourU.git
fetch = +refs/heads/*:refs/remotes/main/*
[branch "master"]
remote = main
merge = refs/heads/master