I currently have one git repository on serverA mirrored to serverB. I am doing this by periodically pulling from serverA and "push --mirror" to serverB. Both repository are the same.
Unfortunatlty, some developpers only have access to serverB, and cannot contribute to the project because they don't have access to serverA. I would like to allow them push code to serverB, and get those changes mirrored to serverA. (the opposite is also true, some developers only have access to serverA)
What I need:
If a developer pushes code to ServerB, I want the code to automatically appear on ServerA.
If a developer pushes code to ServerA, I want the code to automatically appear on ServerB.
Any idea on how to do this?
Many thanks. G