Reputation: 119
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
Upvotes: 0
Views: 463
Reputation: 30392
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
Upvotes: 0
Reputation: 2204
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
Upvotes: 0