【问题标题】:tf checkin a specific foldertf 签入特定文件夹
【发布时间】:2017-12-23 01:24:41
【问题描述】:

在 Visual Studio 的“签入”命令文档中它说:

在不使用“签入”对话框的情况下签入对单个项目的更改

c:\code\SiteApp\Main>tf checkin program.cs /noprompt

如何签入特定文件夹?

像这样: tf checkin path/path/path -comment:"some comment"?

【问题讨论】:

    标签: tfs continuous-integration checkin


    【解决方案1】:

    您可以使用 tf checkin /recursive ,它将检查给定目录下的所有内容。

    您有两种方法可以签入特定文件夹:(首先导航到您的工作区,例如,我的工作区映射到E:\andy\0718\maven

    1.直接指定文件夹路径:(添加一个带有 *.txt 文件的新文件夹“0719”以进行测试)

    tf checkin E:\andy\0718\maven\0719 /comment:"0719" /recursive /noprompt
    

    2。导航到特定目录(文件夹),然后检入当前文件夹中的文件:

    cd 07192
    
    tf checkin /comment:"07192 test" /noprompt
    

    注意:在上面的示例中,我添加了带有 *.txt 文件的新文件夹“0719”和“07192”来测试,您可以直接使用 tf checkin 命令来检查现有文件夹。

    【讨论】:

    • @Peter Shershov 您是否通过上述解决方法解决了您的问题?有什么更新吗?
    • 嘿!感谢您的回答!我自己解决了,但你的回答是正确的。我使用的是 mac,所以语法有点不同: tf checkin 'path/path' -comment:'some comment' -recursive.
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多