git vimdiff mergetool basic commands?

Alex R

I have executed git mergetool to try to resolve some merge conflicts.

It opens 3 text windows (within my SSH terminal) with different versions of code in each.

The code I want is in the window on the right.

How do I tell git to take this version and move on?

Here's the screen shot...enter image description here

Roberto

According to this blogpost:

There are two basic strategies for reconciling a 3-way diff. You can either keep your cursor in the middle file, and run :diffget with the bufspec for the file containing the change you want to keep. Or you can position your cursor on the change that you want to keep, and run :diffput with the bufspec for the working copy file.

Now, a bufspec is a buffer number, a pattern for a buffer name or a part of a buffer name, like "v2" in "file.cpp.v2". If you type 2 plus CTRL+G, it shows you the buffer number and file.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What commands is required to revert changes made by git mergetool?

From Dev

Amending a git mergetool job

From Dev

adding winmerge as mergetool in git

From Dev

Git conflict - mergetool not configured

From Dev

Vimdiff and git all at once

From Dev

Problems using diffmerge mergetool with git

From Dev

Problems using diffmerge mergetool with git

From Dev

Error mergetool code compare in git

From Dev

What's the difference between vimdiff and vimdiff2 in git?

From Dev

force git mergetool to amend a previously done merge

From Java

Git mergetool generates unwanted .orig files

From Dev

Git mergetool meld on windows using putty

From Dev

Select git mergetool based on file type

From Dev

Git launches mergetool without any arguments

From Dev

How to make git mergetool aware of diff markers

From Dev

Why does my Git mergetool configuration not work?

From Dev

Git mergetool meld on windows using putty

From Dev

Git launches mergetool without any arguments

From Dev

Resolve conflicts automatically with git-mergetool

From Dev

`git mergetool`, A `fileName.~fileType` file was produced

From Dev

Recover file deleted using git mergetool

From Dev

Is it OK to copy (not clone) a git repository using basic Unix commands?

From Dev

Switching panes within Git's Vimdiff in Tmux

From Dev

git and vimdiff - close all files at once

From Dev

Git partial merge conflict resolve in a file with vimdiff

From Dev

Switching panes within Git's Vimdiff in Tmux

From Dev

Is it possible to configure git mergetool to avoid .orig for a given merge tool?

From Java

Setting up and using Meld as your git difftool and mergetool

From Java

How to use Visual Studio Code as the default editor for Git MergeTool

Related Related

HotTag

Archive