如何在Visual Studio Code中比较不同的分支 [英] How to compare different branches in Visual Studio Code

查看:1155
本文介绍了如何在Visual Studio Code中比较不同的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio Code 1.9中比较不同的分支?

How do I compare different branches in Visual Studio Code 1.9?

有可能吗?

推荐答案

2019年答案

这是分步指南:

2019 answer

Here is the step by step guide:

  1. 安装 GitLens 扩展程序: GitLens
  2. GitLens 图标将显示在导航栏中.点击它.

  1. Install the GitLens extension: GitLens
  2. The GitLens icon will show up in nav bar. Click on it.

点击比较

选择要比较的分支

现在您可以看到区别.您可以选择要查看差异的任何文件.

Now you can see the difference. You can select any file for which you want to see the diff for.

这篇关于如何在Visual Studio Code中比较不同的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆