1

Basically my goal is to push to both my GH and BB remote repositories, or push to my GH from my local, and the BB repository pulls from my remote GH.

I tried following the instructions in: pull/push from multiple remote locations but I really don't understand and I've been tinkering with this all day.

I have two branches that I also want synced across both. Essentially at all times both repositories should mirror eachother perfectly.

I have one more person that will be connected, but only to the bitbucket repository. When they push to the BB repo, I want both my GH and BB repository to update.

How could I set this up? I also want to use the Github 2 app to push changes.

Community
  • 1
  • 1
eveo
  • 2,797
  • 15
  • 61
  • 95

1 Answers1

0

Instead of having to tinker with local config, you could setup webhooks on both:

That supposes you have a server able to listen to the JSON payload emitted by those two hooks.
That listener will:

  • detect the push done on one remote repo,
  • and push to the other.
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250