0

I'm trying to do a checkin of a single file from the command line using tf.exe:

tf.exe checkin myfile.cs

But whenever I do, I get a popup dialog asking me to select source files.

How can I get it to checkin just this single file without getting the dialog? Popup dialog that hapopens when I try to do a checkin from command line

cashonly
  • 119
  • 9

2 Answers2

0

Most likely you are seeing the popup because you aren't adding a comment. There may also be other policies your administrator request, but comment is the one normally required. As noted in the tf command-line documentation, you can specify a comment as follows:

tf.exe checkin /comment:"My comment" myfile.cs
NextInLine
  • 2,126
  • 14
  • 23
0

You just need to add the /noprompt parameter.

Check in a change to a single item without using the Check In dialog box:

 c:\code\SiteApp\Main>tf checkin program.cs /noprompt
Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55