Merge-conflicts Automation
B

1

0

Using CI/CD approach, one of the principle mentioned, here:

Automate wherever possible

Merging can be done two ways, based on the scenario:

1) Fast-forward merge

2) 3-way merge


Does it make sense to think about automating merge conflicts?

Bassist answered 16/1, 2019 at 18:34 Comment(2)
A fast-forward is not a merge, and cannot have conflicts.Wilterdink
@Wilterdink agreed. it was typoBassist
C
4

No. A merge conflict is literally the end result of a failure to automate.

Remember: Git is doing its best to ensure that it doesn't lose any data, and a merge conflict is Git telling you in its standard, paranoid fashion that it could lose data and it wants you to intervene.

Automating wherever possible is the right mentality. Merge conflicts are very risky to automate, which would preclude the possibility of automating it at all.

Coffeecolored answered 16/1, 2019 at 18:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.