[英]How do you compare file of current branch with file in given commit in VsCode?
I'm working on a project on a given branch in VSCode, and want to compare my current file with the contents of the same file in a previous commit on a different branch. 我正在VSCode中给定分支上的项目上进行工作,并希望将我的当前文件与先前在不同分支上提交的同一文件的内容进行比较。 I think I can do this with the diff
command, but I want to do it visually in VSCode. 我想我可以使用diff
命令来做到这一点,但是我想在VSCode中直观地做到这一点。 Does anyone know how to do this? 有谁知道如何做到这一点?
I'm not really sure you can do that by default with VSCode. 我不确定在默认情况下是否可以使用VSCode做到这一点。 Or I don't know to do that too. 或者我也不知道那样做。
Currently, I use Git History extensions to do that. 目前,我使用Git History扩展来做到这一点。
I go to look on diff file, and click on Git History button on top and select the branch and commit where I want to diff with current file. 我去查看差异文件,然后单击顶部的Git历史记录按钮,然后选择分支并提交要与当前文件进行差异化的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.