Can I fully force a TFS check?

I need a way to force a branch in TFS to update itself to exactly match what is in the working folders. I need something that will delete files that are on the server but not in the working folders, add files to the server that are only in the working folders, and update the modified files using the exact version found in the working folders. I need this to be a command line form or API, and not manually in the user interface.
Does anyone know how to do this?

+3
source share
1 answer
tf undo $/ /r
tfpt online /adds /deletes /diff /noprompt
tf checkin /comment:"synchronizing" /noprompt

Get tfpt here if you don't already have it: http://msdn.microsoft.com/en-us/teamsystem/bb980963.aspx

+4

Source: https://habr.com/ru/post/1713268/


All Articles