在没有工作空间的情况下将文件签入到 TFS(命令行)
是否可以只对 TFS 说我有一个文件(称为 Version.txt),并且我希望将其签入到某个位置(例如 $/MyProject/MyVersionLocation),并且没有为该位置设置任何工作区?
像(假装语法):
tf.exe c:\Version.txt CheckIn $/MyProject/MyVersionLocation /WorkSpaceOverride
如果是这样,你该怎么做?
Is it possible to just say to TFS that I have a file (call it Version.txt) and I want it to be checked in at a location (say $/MyProject/MyVersionLocation) and not have any workspace setup for that location?
Something like (pretend Syntax):
tf.exe c:\Version.txt CheckIn $/MyProject/MyVersionLocation /WorkSpaceOverride
If so, how do you do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有该路径的工作空间映射,则无法签入文件。
一种选择是使用“tfworkspace”和“tfworkfold”的组合在签入之前动态创建工作区。
例如:
It is not possible to checkin a file without a workspace mapping for that path.
One option would be to use a combination of "tf workspace" and "tf workfold" to dynamically create a workspace before checking in.
For example: