Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Visual Studio remove local files when undo pending changes

In Visual Studio if I add a few files to a project but then decide to undo my pending changes the files are removed from the project but remain on my hard drive. This isn't terrible but is annoying. In Visual Studio is there a way to specify that when a change is undone local files should also be removed?

like image 330
ahsteele Avatar asked Apr 10 '26 07:04

ahsteele


1 Answers

I do not know of any way to do this within Visual Studio, however, the Team Foundation Server Power Tools command line utility (TFPT.exe) has a "/scorch" command that you can run that will sync your file system (based on workspaces) back up with version control. So, for example, any items that you've deleted from version control that still remain on your hard drive will be removed.

like image 151
Jeff Bramwell Avatar answered Apr 11 '26 23:04

Jeff Bramwell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!