Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 tf.exe 命令获取最新代码,但它一直在询问用户名/密码 - 有没有办法让这些凭据被记住?
我查看了 tf.exe 参数列表,但没有允许传入用户名/密码的选项。接下来我可以尝试什么?
我认为您需要的是将参数/login即添加/login:DOMAIN\Username,YourPassword到您的TF.exe命令中。
/login:DOMAIN\Username,YourPassword
TF.exe
例子: TF.exe get $/Path/To/Source/On/TFSServer /recursive /login:DOMAIN\Username,YourPassword
TF.exe get $/Path/To/Source/On/TFSServer /recursive /login:DOMAIN\Username,YourPassword
希望有帮助!
您可以将凭据存储在存储的 Windows 凭据中。
有关详细信息,请参阅http://www.ewaldhofman.nl/post/2009/05/21/Automatically-connect-to-TFS-under-another-user-account.aspx