如何在Visual Studio Code并排文件中看到"git diff"?
问题描述:
我想知道如何在Visual Studio Code的终端中使用命令 git diff master origin/master
将其视为文件.
I would like to know how to see as a file with the command git diff master origin/master
in the terminal on Visual Studio Code.
我从远程存储库中进行了 git fetch
,现在我想查看差异,但是使用命令只是在终端中向我展示.
I did a git fetch
from my remote repository, and now I want to see the diff, but with the command just show me in the terminal.
我想要的例子:
答
在Visual Studio代码的左侧,有一个看起来像这样的Git图标:
In Visual Studio Code, on the left side, there is a Git icon that looks like this:
通过单击此图标,然后双击在更改下列出的文件之一,您可以在两侧看到Git差异.
By clicking on this icon, then double-clicking one of the files listed under Changes you can see the Git difference in two sides.