Git - Conflict resolution

> Code - (Programming|Computer) Language > Code Versioning > Git

1 - About

Conflict resolution in Git can be applied:


3 - Options

3.1 - The whole set

You have reason for the whole set of files:

git stash # keep the modification in a stash branch
git pull # get the last one
git stash pop # Destash the modification

see Git - Stash

3.2 - File by file

When you want to resolve conflict in Git, you use the mergetool

Example: mergetool is not configured but will still open tortoisemerge as I have it alreayd installed on my computer thanks to TortoiseGit

git mergetool
This message is displayed because 'merge.tool' is not configured.
See 'git mergetool --tool-help' or 'git help config' for more details.
'git mergetool' will now attempt to use one of the following tools:
tortoisemerge emerge vimdiff

Normal merge conflict for 'syntax.php':
  {local}: modified file
  {remote}: modified file
Hit return to start merge resolution tool (tortoisemerge):
code/version/git/conflict.txt · Last modified: 2019/01/13 22:40 by gerardnico