简体   繁体   English

在TFS 2015构建代理文件夹中找不到git文件夹

[英]Can't find git folder in TFS 2015 build agent folder

I'm trying to configure git settings on a TFS 2015 build agent so that I can add a new certificate as described in TFS Build Agent failing to connect to HTTPS git in TFS 2017 when running as service 我正在尝试在TFS 2015构建代理上配置git设置,以便我可以按服务运行时无法连接到TFS 2017中的HTTPS git的TFS Build Agent中所述添加新证书

When I go to the "agent" folder, there is no "externals" folder. 当我转到“代理”文件夹时,没有“外部”文件夹。 I've tried searching and haven't found the "git" folder or any git executables under the TFS agent. 我尝试搜索,但未在TFS代理下找到“ git”文件夹或任何git可执行文件。

Git isn't installed on the build agent machine, but it is attempting to clone the repository when I run a build - so git must be there somewhere. Git没有安装在构建代理机器上,但是在我运行构建时它正在尝试克隆存储库-因此git必须在某个地方。

How can I find where the git installation is so that I can change the configuration for it? 如何找到git安装的位置,以便更改其配置?

Can I just install git in the standard location and make global changes? 我可以在标准位置安装git并进行全局更改吗? And, if so, will this be picked up by the TFS build agent? 而且,如果是这样,TFS生成代理将对此进行选择吗?

As explained in " Commit to Git: Source Control in Visual Studio 2015 ": 如“ 致力于Git:Visual Studio 2015中的源代码控制 ”中所述:

The Visual Studio 2015 IDE relies on the LibGit2 API and the LibGit2Sharp communication layer to implement all of the Git features it exposes in its front-end tooling. Visual Studio 2015 IDE依靠LibGit2 API和LibGit2Sharp通信层来实现其在前端工具中公开的所有Git功能。

  • LibGit2 is a zero-dependency, cross-platform, open source Git core engine written entirely in C. LibGit2是完全使用C编写的零依赖,跨平台,开源Git核心引擎。
  • LibGit2Sharp is a library written in C# that runs as a managed process under the Microsoft .NET Framework. LibGit2Sharp是一个用C#编写的库,在Microsoft .NET Framework下作为托管进程运行。
    It serves as a .NET-friendly interface between Visual Studio and LibGit2 and it dramatically simplifies the programming effort required by the Visual Studio development team to establish a communication pipeline to and from the LibGit2 library. 它充当Visual Studio与LibGit2之间的.NET友好界面,并且极大地简化了Visual Studio开发团队在与LibGit2库之间建立通信管道所需的编程工作。

So it would not need a separate Git installation. 因此,它不需要单独的Git安装。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM