In my local repo's .git/config
I have
[remote "public"]
url = https://github.com/rax/somerepo.git
fetch = +refs/heads/*:refs/remotes/public/*
[branch "master"]
remote = public
merge = refs/heads/master
[remote "amazon"]
url = ssh://ubuntu@ecXXXXXXXXX.us-west-2.compute.amazonaws.com/home/ubuntu/somebarerepo.git
fetch = +refs/heads/*:refs/remotes/amazon/*
[remote "all"]
url = https://github.com/rax/somerepo.git
url = ssh://ubuntu@ecXXXXXXXXX.us-west-2.compute.amazonaws.com/home/ubuntu/somebarerepo.git
and when I git push all
I successfully push the latest commit to both the amazon
and public
remotes; but the remote branches don't track. For example, if public
is behind when I push, even though the content there is now up to date, the branch is still indicated as behind.
Is there a way to push to more than one remote branch at the same time?