Merge-conflicts Automation

送分小仙女□ 提交于 2020-02-06 09:48:18

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/54223288/merge-conflicts-automation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!