I have all three sites defined as origin in my repository, when I pull it automatically only pulls from the first (GitHub in my case), when I push it pushes to all three. Additionally I have them as separate entries, so that I can pull from specific ones too.
For example for my utils mod my defined remotes look like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
~/src/minetest-australopithecus/utils$ git remote -v
bitbucket git@bitbucket.org:RobertZenz/minetest-australopithecus-utils.git (fetch)
bitbucket git@bitbucket.org:RobertZenz/minetest-australopithecus-utils.git (push)
github git@github.com:RobertZenz/minetest-australopithecus-utils.git (fetch)
github git@github.com:RobertZenz/minetest-australopithecus-utils.git (push)
launchpad git+ssh://robert-zenz@git.launchpad.net/minetest-australopithecus-utils (fetch)
launchpad git+ssh://robert-zenz@git.launchpad.net/minetest-australopithecus-utils (push)
origin git@github.com:RobertZenz/minetest-australopithecus-utils.git (fetch)
origin git@github.com:RobertZenz/minetest-australopithecus-utils.git (push)
origin git@bitbucket.org:RobertZenz/minetest-australopithecus-utils.git (push)
origin git+ssh://robert-zenz@git.launchpad.net/minetest-australopithecus-utils (push)
Because this is extremely tedious to set up, I
have written a script which does the setup for me.