How do you resolve conflicts in infrastructure as code (IaC) with multiple engineers working on the same repository?
This can raise conflicts in case there are changes done in the configuration files or scripts by more than one engineer working on the same IaC repository at a time. The question, therefore, tries to know the strategies, processes, and tools that will assist in solving such conflicts. It focuses on techniques for collaborative coding in IaC, including how to use workflows like Git branching and merging along with conflict resolution strategies and the best practices so that collaboration is smooth, minimizing disruption to deployments caused by conflicting code changes.