How can I get Visual Studio to show merge conflicts in git?

I am using Visual Studio 2015 Pro and working with the Git repository. Let's say I made an attraction or applied hidden changes or did something that made my branch come into conflict. For example, in this case, I just applied stash:

enter image description here

As you can see, I have a bunch of changes, but Web.config is in conflict. Why are there always conflicts in XML files?

Now I go to Visual Studio and go to Team Explorer-> Changes:

enter image description here

Here I see my phased changes, but there are zero unstated changes. I am wondering why Web.config is not showing up here, so I can resolve conflicts.

Two things:

  • I believe that if I did Pull using Visual Studio, it would detect conflicts that then trigger the merge tool. I have not tried this yet, but I know that this works for TFS. However, I would like to know if I can use Git pull from the command line and then use Visual Studio to resolve conflicts.
  • git config --global merge.tool already vsdiffmerge , so if I have to run git mergetool from the command line, it will use Visual Studio to merge. However, this creates a new instance of Visual Studio, which is slow and annoying and does not allow me to work in the context of the rest of my project.

Does anyone have an understanding of this? Thanks!

+8
git visual-studio visual-studio-2015
source share

No one has answered this question yet.

See related questions:

6484
How to make "git pull" overwrite local files?
4541
How to resolve merge conflicts in Git
3969
How to add an empty directory to a Git repository?
3656
How to determine the URL from which the local Git repository is cloned?
2346
I ran into a merge conflict. How can I abort a merge?
2086
How to get the current branch name in Git?
1432
How can I reconcile a single head with a master / source?
1419
Using Git with Visual Studio
1335
How do you combine the two Git repositories?
428
Undo git stash pop which leads to merge conflict

All Articles