简体   繁体   English

如何在Visual Studio中将本地文件与Git上的本地文件进行比较

[英]How do I compare a local file with the one on Git in Visual Studio

Is there a way in VisualStudio 2015 to get the Source Control Explorer to work with Git. Visual Studio 2015中是否有一种方法可以使Source Control Explorer与Git一起使用。 This post says it was not working in VS2012 but I can't find anything about VS2015. 这篇文章说它在VS2012中不起作用,但是我找不到关于VS2015的任何东西。

I need to compare a local file with the version on Git. 我需要将本地文件与Git上的版本进行比较。

Source Control Explorer only works with TFVC - there is not a corresponding Source Control Explorer for Git. 源代码管理资源管理器仅适用于TFVC-没有相应的Git源代码管理资源管理器。 You might want to vote on this user voice suggestion for it to be included in the future: 您可能希望对该用户语音建议进行投票,以便将来将其包括在内:

https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/4178754-visual-studio-tools-for-git-extension-microsoft-g https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/4178754-visual-studio-tools-for-git-extension-microsoft-g

You can view local changes with the Changes page, or compare versions from the history page. 您可以使用“更改”页面查看本地更改,或从“历史记录”页面比较版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Git 时如何刷新 Visual Studio 中的分支(本地/远程)? - How do I refresh branches (local/remote) in Visual Studio when using Git? 如何在已经存在的本地 git 存储库上设置 Visual Studio 2019? - How do I set up Visual Studio 2019 on a local git repository which already exists? 如何在 Visual Studio for Mac 8.9 中创建和推送本地 git 分支 - How do I create and push a local git branch in Visual Studio for Mac 8.9 如何在Visual Studio团队资源管理器中一次性接受多个文件中的Git分支合并更改? - How do I accept Git branch merge changes in multiple files in one go in Visual Studio Team Explorer? 如何将git中的文件与另一个文件的另一个版本进行比较? - How do I compare a file in git with another revision of another file? 如何配置Visual Studio 2013以与Git / SourceTree一起使用 - How do I configure Visual Studio 2013 for use with Git/SourceTree 在Visual Studio中使用Git,如何导航存储库文件? - Using Git in Visual Studio, how do I navigate repository files? 如何配置 Araxis Merge 以与 Visual Studio Git 一起使用? - How do I configure Araxis Merge for use with Visual Studio Git? 如何在 Visual Studio Code 中推送 Git 标记? - How do I push a Git tag in Visual Studio Code? 我如何在 visual studio 2022 中不快进进行 git 合并? - how do I git merge with no fast forward in visual studio 2022?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM