Merge Conflicts

A merge operation merges the contents of two branches which have a common ancestor but have received different changes. Targeted merging of branches is mainly done in the Git Branches view using the Merge command. A merge operation is also included in a pull action.

Different states of the source and target branches are detected during the merge operation and are called a conflict. Depending on the set option, CODESYS Git tries to automatically resolve these conflicts whenever possible, or this resolution is left to the user.

After the conflict is resolved, CODESYS Git always tries to Resynchronize (re-read the project from the project storage). This is done by closing the project which is open in CODESYS and creating a new one from the storage.

CODESYS Git distinguishes between two types of conflicts which can occur while merging:

In the Status & Staging view, you as a user can check and edit a conflict as follows:

In the Messages view, you can double-click an error message for a conflict in order to open the affected object.