tags:

views:

281

answers:

1

I need to synchronize my c:\Source\MyProject\Trunk workspace folder with tfs using the team foundation server power tools command tfpt scorch. I want the scorch command to skip the folder c:\Source\Myproject\Trunk\.git, all its children and the file c:\Source\Myproject\Trunk\.gitignore. How do I specify the "filespec" for the /excludes command line parameter?

+1  A: 

I would (obviously) want to test this, but a filespec (or itemspec) in TFS speak is the local or server path to a file/folder. Therefore you should be able to pass /excludes:c:\Source\Myproject\Trunk.git and I would expect it to be excluded recursively. Additionally, as I understand itemspecs I would have thought if you did /excludes:*.git that would exclude any files or folders with the .git extension.

That said, I've never used the scorch command so it would be worth making a backup of the Trunk.git folder before you run this command though in-case my guess is incorrect...

Martin Woodward
Here is what worked for me /exclude:*.git* this excludes both the .gitignore file and the .git folder and its children.
Ahmed Chaudhary