Reputation: 523
How can I sync Bitbucket branch with openshift:master
?
I develop on my local desktop and I push my work into a branch named bitbucket:uat
. Each time I push on bitbucket:uat
I need after to run :
git push openshift uat:master
Is there a way to automatically push into openshift:master
at the same time I push into bitbucket:uat
?
(I use Openshift v2)
Upvotes: 1
Views: 109
Reputation: 1324248
In theory, you can push to multiple remotes, but since your remote branch name is different pre remote (and multiple branch.<remote>.push
settings are probably not supported), an alias is the simplest approach.
[alias]
pushall = "!f(){ git push bitbucket uat; git push openshift uat:master; };f"
Upvotes: 1