3

I'm trying a simple TFS 2015 checkin automation. I have a local workspace mapped to a local folder. In that folder, I added some files and deleted one. What I want is to checkin those changes

I run this command

tf.exe checkin <folder> /recursive

The result (unexpected) is "no pending changes"

If I run the following command

tx.exe status <folder>

I get the list of changes expected.

If I look in Visual Studio source code explorer, I cannot see my changes but if I try to add items in the TFS folder, I can see new files.

Can you help me to understand how I can automate this checkin scenario?

EDIT : based on this SO thread, it seems it is not possible to achieve this with local workspace. Can someone confirm?

Community
  • 1
  • 1
  • With running `tf status` command, your files should under "detected changes" not "changes", actually there are not "*real pending changes*" – PatrickLu-MSFT Sep 08 '16 at 02:53

1 Answers1

2

You need to run "tf add" command to add these files into Pending Changes before run "tf checkin" command:

tf add * /recursive
Eddie Chen - MSFT
  • 29,708
  • 2
  • 46
  • 60