Search code examples
gitvisual-studiocomparevisual-studio-2019git-diff

Is it impossible to compare a file changes with a specific commit in Visual Studio 2019?


I'm aware it is possible to do it with HEAD but we need to compare it with another commit, is it impossible?


Solution

  • Any comparison is possible as far as I know, we just have to define Visual Studio as difftool in git, then write the diff we need in the following fashion:

    git difftool xxx
    

    Visual Studio will open, showing you the results visually.