


You could change the section entirely and not choose either of the options, OR You could choose to go with either of the changes by deleting the version you no longer want and removing the conflict markers, OR There are a number of approaches to dealing with a conflict: The two conflicting blocks are divided by a = line. This conflicting section is marked with >. Looking at the file, we will see Git has denoted the conflicting section (selected here). Instead, open the file with an external text editor (the document will open with whichever text editor/application we have chosen as the default for opening Markdown files). GitKraken offers you the option of opening the file with the sync conflicts. This is not a big problem: What Git is aking you to do is manage these conflicts. Once you do the Pull, we get a transient message about a ‘Merge Conflict’ and a timeline message warning us about “Merge Conflicts”, which is not unexpected: GitKraken warns us that we are behind the remote, so we must do a Pull: Return to GitKraken, click on the WIP line, stage your change, add a description, and Commit: Now let’s move back to GitKrken, and without syncing/pulling, make a change to the same document locally: Let’s edit this file and line with a single # as an H1 tag: The first title line isn’t properly formatted. Let’s add a change to our remote repository to main documentation README.md file.
#Gitkraken external merge tool how to#
But if these changes conflict with one another – if you try and change the same line of the document in two different ways – that’s when there is an issue, as Git will not know which change is the one you wish to keep.Īn example will help illustrate the most likely way conflicts can emerge, and how to deal with them. If you make changes in different parts of a file or within the repo, these changes can be merged (synced) together without any conflict. The most likely way a conflict will emerge is if you, or if you are sharing your repo with a collaborator, make a change on either the local or online repo, and then make a subsequent change on the other without first syncing the changes. If you are careful about committing and syncing then it is unlikely you will run into this issue but if you do, it can be resolved fairly easily. Managing Conflicts View on GitHub Learning objectivesĪ conflict emerges when you try to merge (sync) two versions of a document with changes which conflict with each other. Managing Conflicts | Tools for Reproducible Research Skip to the content.
