- install git: https://git-scm.com/downloads
- important to select “checkout as-is, commit as-is”
- use only git from windows command line no other Unix tools, usually a good selection
- select: git bash from here , git GUI from here .
- install kdiff3 http://kdiff3.sourceforge.net/
- kdiff3 with git integration
- edit C:\Users\user\.gitconfig
- put there:
[diff] tool = kdiff3 [merge] tool = kdiff3 [mergetool "kdiff3"] path = c:/Program Files/KDiff3/kdiff3.exe keepBackup = false trustExitCode = false [difftool "kdiff3"] path = c:/Program Files/KDiff3/kdiff3.exe keepBackup = false trustExitCode = false
- to use the merge tool, you type “git mergetool” or from git GUI right click on the code and choose mergetool
- when you get a conflict you simply type git mergetool
- how to use kdiff3?
- in the toolbar, there are up/down double arrows that skip merge conflicts.
- the left column(A) is the common ancestor. then you choose from toolbar which version you want column B version or C version,
- after all of the conflicts are resolved it is possible to click in the toolbar save and exit.
- how to solve the Github merge conflict?
- clone with ssh
- go to the pull request with the conflict
- enter the cloned repository
- use the first part of git commands that offered by Github to resolve the conflict using the command line
- use mergetool and commit
- use the second part of git commands that offered by Github to resolve the conflict using the command line
Recent Comments