SVN restore and delete files

Source: Internet
Author: User
Tags tortoisesvn
SVN restore and delete files

1. Local Deletion
Local deletion of SVN files refers to the deletion of a file on the client, but there is no commit. Use revert to cancel the deletion.

Ii. Server Deletion
1. submit it to the server after local Deletion
A) update the previous version, but it is only applicable when there are few changes;
B) Find the deleted item through showlog, select it, and right-click revertchangesfromthisrevision;

2. Delete in repo-Browser
The deletion is very powerful, so you will not be able to see the deleted items in the repo-browser. In fact, the project is not actually deleted.
A) the local project still exists. Right click-> tortoisesvn-> Update to revision, enter the revision when the project is deleted, click OK, and then import it.
B) the local project is gone.
Right-click-> tortoisesvn-> export ..,
URL of repository fill in the Project address;
Export Directory: Enter the path to be backed up;
One revision item. The default value is head revision, but this item cannot be selected here. Because the project has been deleted, head revision is only valid for existing projects. It is best to remember the versions before deletion. If you forget it, read it one by one until you find the desired version.
Click OK. If this directory does not exist, you will be prompted to create one. After you confirm, you will be OK.

Restore SVN to delete files or folders using tortoisesvn: 1. In local working copy, use tortoisesvn-> show log to view the version database history. You can use search.
2. Find the version for deleting the file or folder, and right-click revert the changes from this revision in log message.
3. The file or folder is restored to the local working copy. If it is deleted by mistake, commit to repository.

Use the subclipse plug-in of Eclipse:
1. Use team-> show repository history to view the version database history.
2. Find the version to delete the file or folder, and right-click reversponxx version.
3. The file or folder is restored to the local working copy. If it is deleted by mistake, commit to repository. This section describes how to delete files and Restore Files in SVN.

SVN restore and delete files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.