This repository is an example of how to deal with merge conflicts.
Here is an example of the current branch tree.
bug fix -> o---o---o
/
dev -> o---o---1---o---o---o
/ \ \
master -> o---o---o---2---o---o---o---o
- {optional} Fork this repository to your own account.
- Clone the repository to your computer
- Open a Git Shell and type the following:
git merge devThis should create a merge conflict. - Type the following in the git shell to start the default merge tool (probably kdiff3).
git mergetool
In the mergetool, you will have to decide which information you want to keep in the merge. Merge conflicts are, by their nature, specific to whose code/version you plan to keep. You can also do some manual edits if one or the other version isn't what you want.
For more information, follow this link and this link. Whatever you do, don't do this.