Is it possible in Git to do the following, easily?
- Have a 'main' repo located at say, GitHub
- Keep another repository at Bitbucket, and another one on a production server (web host)
When local development occurs, I want the push to push changes into GitHub, and push those same changes to the other repositories simultaneously.
I tried doing this with --mirror, but with a team of 7 working on the same project, it seems prone to removing feature branches when the mirror is updated.
Thoughts? Is there any way to do this without manually editing the .gitconfig file to manually define an origin that points to multiple repo URLs? Could this be done with a hook?