arthuRHD
arthuRHD

Reputation: 73

What is the right way of merging?

Let's say I have 4 branches :

Now, there is a rule in my firm :

What happens if the issue #2 is treated and branch local/2 is merged onto develop ? Is the branch local/3 lost because the initial commit's hash depends of branch local/2 ? How can i merge my branch local/3 without conflicts after the merge of develop and local/2 ?

Upvotes: 0

Views: 50

Answers (1)

Nullish Byte
Nullish Byte

Reputation: 396

  1. Branch 3 is not lost unless you explicity delete it (git branch -d name).
  2. If your files changed in the local3 are not changed in master, there will be no conflicts. But sometimes merge conflicts are not avoidable.
  3. Intellij provides a very graphic and good tool to manage merge conflicts. Is freely available in community edition as well.

Upvotes: 1

Related Questions