fix duplicate commit problem in different git repos