简体   繁体   中英

Client Team Foundation Server with Command-Line

I'm trying to connect to the Team Foundation Server from command line.
these are the steps i did to connect:

tf eula

tf workspace -new Beta1 -collection:http://myserver:8080/tfs/DefaultCollection

tf workfold -map $/ScrumProject/JavaSample -workspace:Beta1 /Users/Example

tf get

I get this command from http://msdn.microsoft.com/en-us/library/hh873092.aspx

the problem is when i write tf get i always get this message

"All files up to date." and there are no files that exist in the distention folder.

Massive thanks in advance.

When TFS fo a get operation, and if your workspace version is the same, TFS does not replace any file on disk unless the option is specified. 选项,否则TFS不会替换磁盘上的任何文件。

Also there is option to forcibly overwrite. 选项来强制覆盖。

Also when we pass the option, TFS overwrites all items in the workspace with the latest server version unless you provide a specific version. 选项时,除非您提供特定的版本,否则TFS会使用最新的服务器版本覆盖工作区中的所有项目。

so Can you try something like

 tf get D:\project\* /version:C111 /overwrite /force 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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