git - 永久禁用 Visual Studio 2015 中的 Git 集成

标签 git visual-studio tfs

我使用的是 Android studio,我总是使用 Git,但在 Visual studio 2015 中我使用的是 VFS。问题是,Visual Studio 总是连接到我的 Git 存储库。而不是 Team Fundation Server。当我重新连接到 VFS 并从我的解决方案中选择一个时,Visual Studio 重新连接回 Git。所以VFS没用。

我试过像这里这样用注册表黑客来解决这个问题: Question from: Matthew Kraus但没有运气。

我只想在 Visual Studio 中使用 VFS,可以永久删除 Git。

最佳答案

使用 this 解决的问题:

以下是如何在 Visual Studio 中禁用负责加载 Git 源代码控制支持的包。使用风险自负!

  1. 创建一个名为 devenv.pkgundef 的文件,并将其放在 Visual Studio 的 Common7\IDE 中的 devenv.exe 旁边(为此您需要提升权限)

  2. 将以下条目添加到文件中: [$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}] [$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]

  3. 如果 VS 打开,请关闭它,打开 Developer 命令提示符,然后键入 devenv/updateconfiguration

  4. 启动 VS,瞧 - Git 不再支持!

要撤消,请删除 devenv.pkgundef 文件,然后再次运行 devenv/updateconfiguration。

关于git - 永久禁用 Visual Studio 2015 中的 Git 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34954528/

相关文章:

git - 如何从服务器端口 9418 克隆存储库?

c# - 为什么使用静态资源会破坏 Visual Studio 中的设计器?

c++ - 在非 Qt 应用程序 (C++) 中使用 Qt 的信号

css - Powershell 构建 - 编译 SASS

tfs - 自动构建和部署 Windows 服务

git - 如何找到针对哪个 git commit 构建了启动板包?

git - git 中的作者/提交者数据不尊重 GIT_CONFIG 变量

Git - 是否可以修改/删除远程 git 存储库的 reflog,例如在 Github 上?

c# - 计算 .NET Core 项目的代码指标?

tfs - check out 文件列表