Is it possible to push A/foo
to B/bar
where A
and B
are remotes( different, obviously ), and foo
and bar
are branch names?
Yes, you can simply pull it first to a temporary local branch, then push it to the remote:
git checkout -b tmp
git pull A foo
git push B tmp:bar