user2734550
user2734550

Reputation: 962

Remove pending changes but DON"T 'UNDO' my changes from TFS

I edit about 50 files in 20 different folders. When I check out for edit, I mistakenly used 'ctrl+a' and selected all folders along with all files in it. That's about 1000 files that I didn't touch at all being included in Pending Changes. How do I remove them from pending changes without "UNDO" my fix for those 50 files?

Upvotes: 2

Views: 2488

Answers (3)

Gregory A. Owen
Gregory A. Owen

Reputation: 318

You can move the files via FileExplorer, Undo through TFS, and then add the files back where they were.

Upvotes: 0

dartNNN
dartNNN

Reputation: 186

[I work with TFS 2010] When doing checkin TFS checks if file was changed. So it is safe to do checkin all files. Not changed files will not be included in changeset.

Upvotes: 1

DaveE
DaveE

Reputation: 3637

You could shelve the files you're interested in, undo everything, check out the files you're interested in, unshelve the pending changes, then check in your changes.

Or you could just check everything in and let TFS ignore the unchanged files.

Upvotes: 2

Related Questions