Resolve conflicts
This page describes how to resolve conflicts that you may run into while merging your changes.
Resolve conflicts during merging
Now let's create a Project in third_branch
with same name as first_Pipeline
and put a different path in Dataset.
Post this once we pull the changes from main
into this branch, it would have conflicts as first_Pipeline
exists both in
main
and current
branch.
One way is to use the Git interface directly to resolve conflicts between branches.
Or we can use the simple merge UI on Prophecy to resolve the conflicts
Let's see in the video below on how to resolve conflicts using simple merge on Prophecy:
Resolve conflicts using manual merge
You can use manual merge to resolve conflicts. This provides you with simple, yet effective ways to resolve merge conflicts for granular changes.
Use Left or Right merge strategy
The Left or Right merge strategy gives you a the option to resolve the conflict by choosing one version of your code to keep. After choosing, you can click Next to continue the merge process.
- (A) Strategy - You must choose a preferred strategy to resolve the conflict. Here the Left strategy keeps the version on branch
master
, while the Right strategy keeps the version on branchdev
. - (B) Open on master - Clicking this opens the Model on branch
master
for you to view. - (C) Open on dev - Clicking this opens the Model on branch
dev
for you to view.
Here are the read-only views on branch master
on the left and branch dev
on the right:
Use Code Changes strategy
For SQL, you can also toggle on Code Changes to view and edit the code before validating. You can resolve conflicts by making code changes directly on the files.
Once you've made the changes that you want to keep, click Next. The merge process will compile the files.
In rare cases, your merge attempt may result in an error after the compile completes. You'll be asked to fix the error before proceeding. See Diagnostics at the bottom for details on what the error is and how you might go about fixing it. Once you've fixed the error, click Try Again.
If you're confident that the errors are fine to leave as is, click Ignore Errors.