YouTip LogoYouTip

Svn Revert

# SVN Version Rollback * * * When we want to discard modifications to a file, we can use the **SVN revert** command. The svn revert operation will undo any local changes in a file or directory. We modify the file readme and check the file status. root@:~/svn/tutorial01/trunk# svn status M readme At this point, we realize the modification was an error and want to undo it. We use svn revert on the file readme to return it to its unmodified state. root@:~/svn/tutorial01/trunk# svn revert readme Reverted 'readme' Then check the status again. root@:~/svn/tutorial01/trunk# svn status root@:~/svn/tutorial01/trunk# After performing the revert operation, the readme file is restored to its original state. The revert operation can not only restore a single file but also restore an entire directory. To restore a directory, use the -R command, as follows. svn revert -R trunk However, what if we want to restore a version that has already been committed? To eliminate an old version, we must undo all changes in that old version and then commit a new version. This operation is called a reverse merge. First, find the current version of the repository, which is now version 22. We want to roll back to a previous version, for example, version 21. svn merge -r 22:21 readme
← Php PcreJs Validation β†’