repositories synchronization best pratice