简体   繁体   English

本地TFS。 更改Git位置/使用外部

[英]On-premises TFS. Change Git Location/ Use External

I am not able to answer myself the following questions concerning git handling by an on-premises TFS: 我无法回答有关本地TFS的git处理的以下问题:

  • Where does TFS store git repositories? TFS在哪里存储git仓库?
  • How can I change that location? 如何更改该位置?
  • Or is every git repository restricted to reside on the TFS? 还是每个git存储库都被限制为驻留在TFS上?
  • Is it possible to use a different git repository hosted on-premises on a different server and give the on-premises TFS full access to this so that everything is working just like it is a "normal" TFS git? 是否可以使用本地托管在不同服务器上的其他git存储库,并向本地TFS授予对此的完全访问权限,以便一切正常,就像它是“正常” TFS git? (I know that I can add an external git repository to the build process but what I want is a "real" integration - thus the code explorer should be able to browse that repository) (我知道我可以在构建过程中添加外部git存储库,但我想要的是“真正的”集成-因此代码浏览器应该能够浏览该存储库)
  • And is there some kind of resource explaining the internal handling of git by the TFS? 并且有某种资源可以解释TFS对git的内部处理吗? I would love to dive deeper and know what TFS does in the background. 我想更深入地了解TFS在后台执行的操作。 Or in different words: What is Microsofts excuse for blocking 'external' git repositories? 或换句话说:微软阻止“外部” git存储库的借口是什么? As I fear the above scenario is just not possible to realize... 我担心以上情况无法实现...

Thank you. 谢谢。

Short answer: TFS stores Git data in the Collection database. 简短答案:TFS将Git 数据存储在Collection数据库中。 This choice is congruent with the initial design of transactional coherence and simplified backup strategy (no data dispersed in multiple files/filesystems). 此选择与事务一致性的初始设计和简化的备份策略(没有数据分散在多个文件/文件系统中)一致。 All TFS data is in a SQL Server database: filesystem is used only as a cache to avoid expensive operations. 所有 TFS数据都在SQL Server数据库中:文件系统仅用作缓存,以避免昂贵的操作。 As a consequence you cannot manage "external" repositories. 因此,您无法管理“外部”存储库。

If you really want to drill down on how this is accomplished, read Richard Banks' post . 如果您真的想深入了解实现方法,请阅读Richard Banks的帖子

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

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