Reputation: 546
In our team we struggle with such situations:
develop
.develop
.develop
.How to avoid it?
Options I see:
push
each developer should pull updated version of develop
and merge it into his local branch.Upvotes: 0
Views: 505
Reputation: 249582
The problem is here:
A merge does not restore deleted code unless it is being done in a very strange way (e.g. by copying files manually).
If Developer A makes a change which is "Delete code X" and Developer B makes some other change, merging the two does not restore X. If that's happening you'll need to analyze in much more detail the workflow of the person doing the merge, and of course you can view in detail all the commits in the main repo now.
Upvotes: 4