git - 如何在 Visual Studio Code 并排文件中看到 'git diff'?

标签 git visual-studio-code git-diff git-difftool

我想知道如何在 Visual Studio Code 的终端中使用命令 git diff master origin/master 查看文件。

我从远程存储库中执行了 git fetch,现在我想查看差异,但使用命令只需在终端中显示即可。

我想要的示例:

Screenshot of diff viewer in Visual Studio Code

最佳答案

在 Visual Studio Code 中,左侧有一个 Git 图标,如下所示:

通过单击此图标,然后双击“更改”下列出的文件之一,您可以看到两侧的 Git 差异。

关于git - 如何在 Visual Studio Code 并排文件中看到 'git diff'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51316233/

相关文章:

git - 从 bitbucket 部署到实时服务器

javascript - 已安装实时服务器但无法在 VS 代码中运行

c# - 将 C# 程序部署为命令行实用程序

git - git push 如何处理积压的工作

cPanel 中的 GIT 存储库连接失败

git - diff命令 'diff -b'和 'git diff'的区别

git - git 使用的差异版本是什么? diff2 还是 diff3?

git - "git diff"什么都不做

windows - 我的 Windows PC 上有多个版本的 Git?

javascript - 如何在 VS Code 的 Angular 工作流程中使用 Pusher-JS?