Max Kielland
Max Kielland

Reputation: 5841

TortoiseSVN - How to revert files marked for delete?

I was reorganizing some projects by copying (not moving) some folders under version control to a new structure. After that all my original files are marked for delete!

I can't find any alternative to unmark them for delete. Added files have the option to "Revert Add", but nothing for deleted.

I have tried "update" and "clean-up" but they refuse... // thanks.

Upvotes: 4

Views: 5337

Answers (2)

Sheac
Sheac

Reputation: 438

one way that i know, is to select the ones that are marked as deleted, and just mark them as added, then commit. they will then be marked as "replaced" in the commit menu. once you commit nothing really happens to the files, they are just green again like normal.

Upvotes: 7

Michael Madsen
Michael Madsen

Reputation: 54989

Right-click your checkout folder, or the directory you accidentally deleted the files from. From there, you should be able to select TortoiseSVN > Revert, and see all of your missing files.

Alternatively, you can open the Commit dialog and see your changes there: from there, you can also revert them (select, right-click) and then close the dialog without actually committing anything.

Upvotes: 4

Related Questions