如何为 Visual Studio/Team Server 2013 启用 Git
How do I enable Git for Visual Studio/Team Server 2013
我们有一个 2013 年创建的团队项目。该项目的网站允许创建 Git 回购协议,但在 Visual Studio 2017 年,我们创建的 Git 回购协议是总是离线并表现出其他奇怪的行为(例如,即使连接到其中的 Git 存储库,也会在 Visual Studio 中加载 TFVC 的界面)。我使用 Fiddler 检查流量并注意到这个特定项目缺少 SourceControlGitEnabled = true 标志。我们在一年半后创建的项目确实包含 SourceControlGitEnabled 标志并且工作正常。
是否有我们可以 alter/enable 的 TFS 团队项目设置,或者我是否必须使用 Git 创建一个新项目作为存储库并将所有内容迁移到其中?
当你在TFS2013的Team Project中新建一个repo时,应该会出现如下警告:
Note that some versions of Visual Studio will only provide full Team
Explorer integration with a repository that has the same name as the
team project. Users may need to manually clone this new repository to
use it in Visual Studio.
这可能是 TFS2013 GIT 的局限性,要么手动克隆这个新存储库以在 Visual Studio 中使用它,要么创建一个新项目并使用 Git 作为存储库并迁移所有内容对它来说,两者都应该有效。
我们有一个 2013 年创建的团队项目。该项目的网站允许创建 Git 回购协议,但在 Visual Studio 2017 年,我们创建的 Git 回购协议是总是离线并表现出其他奇怪的行为(例如,即使连接到其中的 Git 存储库,也会在 Visual Studio 中加载 TFVC 的界面)。我使用 Fiddler 检查流量并注意到这个特定项目缺少 SourceControlGitEnabled = true 标志。我们在一年半后创建的项目确实包含 SourceControlGitEnabled 标志并且工作正常。
是否有我们可以 alter/enable 的 TFS 团队项目设置,或者我是否必须使用 Git 创建一个新项目作为存储库并将所有内容迁移到其中?
当你在TFS2013的Team Project中新建一个repo时,应该会出现如下警告:
Note that some versions of Visual Studio will only provide full Team Explorer integration with a repository that has the same name as the team project. Users may need to manually clone this new repository to use it in Visual Studio.
这可能是 TFS2013 GIT 的局限性,要么手动克隆这个新存储库以在 Visual Studio 中使用它,要么创建一个新项目并使用 Git 作为存储库并迁移所有内容对它来说,两者都应该有效。