Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I re-configure Diff & Merge Tools to its default settings (clickable links) in Git Settings window in Visual Studio?

Is there a way to go back to the default settings regarding the Diff & Merge Tools in the Git Settings window ?

My Visual Studio Git Settings windows view is currently this:

Team Explorer - Git Settings

like image 641
Sam490 Avatar asked Feb 24 '17 21:02

Sam490


People also ask

How do I use the git Difftool command?

Specify a custom command for viewing diffs. git-difftool ignores the configured defaults and runs $command $LOCAL $REMOTE when this option is specified. Additionally, $BASE is set in the environment. When git-difftool is invoked with the -g or --gui option the default diff tool will be read from the configured diff.

How do I check my git diff tool?

Go to your repository in Git Bash. Type git config diff. tool winmerge . Verify it worked by typing git difftool .

What is the command to turn off Diff tool prompting?

man git-difftool OPTIONS -y, --no-prompt Do not prompt before launching a diff tool.

What is the default git diff tool?

The default Diff Tool is vimdiff. Specifying a Diff Tool affects the git difftool command. The command git diff still performs diffing on the command-line.


1 Answers

These settings are controlled from your git configuration settings. There isn't a way to unset this in Visual Studio, but you can modify the git configurations.

You can modify these settings via the git commands on the command line. Open a command prompt and type one of the following commands (use the global switch, as it appears you have this set globally in the screen shot):

git config --edit --global

and remove the line for "tool" in the diff and merge sections.

Alternatively, you can remove the settings from the command line via the following git commands:

git config --global --unset diff.tool
git config --global --unset merge.tool 

If you are on the Git Settings Team Explorer page when you unset the above values, you will need to manually refresh the page in order for it to pick up the changes (hit F5, or press the refresh button on the top of the Team Explorer page).

like image 81
jamill Avatar answered Oct 06 '22 00:10

jamill