简体   繁体   English

我可以在现有的TFS团队项目中创建git存储库吗?

[英]Can I create a git repository an existing TFS Team Project?

When my Team project for TFS 2015 was created there was no repository created. 创建我的TFS 2015团队项目时,没有创建存储库。 Is there any way to create a repository now? 现在有什么方法可以创建存储库吗? If there already exists a repository there is an option 'New repository...' in the Version Control tab in the web-portal but that is missing now. 如果已经存在存储库,则在Web门户的“版本控制”选项卡中有一个选项“新建存储库...”,但现在不存在了。

If I cannot add a repo at this point, I would like to know if I can move the content (User stories and tasks) of this Team Project to another one. 如果此时我无法添加存储库,我想知道是否可以将该团队项目的内容(用户案例和任务)移到另一个项目中。

Thanks. 谢谢。

With the current version of TFS it is possible to add a Git Repo even when "TFVC" was selected during project creation. 使用当前版本的TFS,即使在项目创建过程中选择了“ TFVC”,也可以添加Git Repo。

On the very top of the (project) page click the "arrow down" on the TFS repo and select the option you wand: Import Git repo, Add git repo, ... 在(项目)页面的最顶部,单击TFS存储库上的“向下箭头”,然后选择要使用的选项:Import Git存储库,添加git存储库,...

First, please make sure you have related permission of that Team Project. 首先,请确保您具有该团队项目的相关权限。 You can also try to create a repository using REST API as jessehouwing suggested. 您也可以按照jessehouwing的建议尝试使用REST API创建存储库。 Moreover, you can check the logs for troubleshooting which stored in $:\\Users\\user name\\AppData\\Local\\Temp and labeled xxx_TeamProjectCreation_yyyy_mm_dd_hh_mm_ss.log . 此外,您可以检查故障排除日志,这些日志存储在$:\\Users\\user name\\AppData\\Local\\Temp并标记为xxx_TeamProjectCreation_yyyy_mm_dd_hh_mm_ss.log

For the second question, if the two team projects be created using the same process template, the simple solution would be export the work items to Excel from old team project and import to new team project. 对于第二个问题,如果使用相同的流程模板创建两个团队项目,则简单的解决方案是将工作项从旧团队项目导出到Excel ,然后导入到新团队项目。

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

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