git - how to merge 2 branches with no conflict -
git - how to merge 2 branches with no conflict -
so created branch master. lets branch called br1.
i begin solve issues in br1.
my coworker gonna work on br1. created branch called br2 br1.
i moving forwards br1 on issues , moving forwards br2 on issues.
at end, how can merge br1 , br2 no conflict ?
if both working on different files, shouldn't have conflicts when merge branches together. conflicts occur in git when not able programmatically determine alter supposed 1 ones during merge.
for example:
in branch, delete file. , in other branch, coworker modifies it. supposed there when merge done? should file deleted or coworker need in new form? hence conflict. git going inquire you, human, @ alter , decide supposed there.
conflicts not bad thing. proper organization of branches help minimize them. not need avoid. resolving conflict can painful not should worry about. can minimize risk of conflict through regular merging of branches don't diverge far each other.
git github
Comments
Post a Comment