Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to check-out multiple files from various folders in TFS in a single operation

Tags:

tfs

Is there a way to check-out multiple files from various folders in TFS in a single operation.

i have modified multiple files under muliple direcotries but i want them to check-out in a single click and check-in also in single click.

Thanks.

like image 951
sqlnewbie Avatar asked Sep 23 '11 11:09

sqlnewbie


People also ask

What is check out for edit in TFS?

Check Out: Prevent other users from checking out and checking in the items until you check in and unlock them. Check In: Allow other users to check out the items you are checking out, but prevent them from checking in their changes until you check in your changes and unlock the items.


1 Answers

Yes, using the TFS command line client (tf.exe).

If you have tf.exe available, you could do this using the checkout command. (If you don't, take a look at this question: How to get tf.exe (TFS command line client)?)

  • Checkout command for Visual Studio 2013-2015: https://www.visualstudio.com/en-us/docs/tfvc/checkout-or-edit-command

  • Older versions: https://msdn.microsoft.com/en-us/library/1yft8zkw(v=vs.80).aspx

Example: Separate multiple files by spaces

tf checkout file2.cs file2.cs

Example: Use a wildcard to search

tf checkout *.csproj /recursive
like image 62
redrobot Avatar answered Nov 15 '22 10:11

redrobot