SVN back version

Source: Internet
Author: User

http://blog.csdn.net/cjsafty/article/details/6662205

SVN back to a version of history
In the code writing process, inevitably some errors need to modify, or want to change from the previous file code, this involves the version of tracking, if you have previously submitted the log is very clear, the version tracking back to roll up more effort, handy. Here are some ways to roll back the versions:
1. One recommended way is to export directly to the version you need, then use your export version to overwrite your latest version, so you can not lose your new files, and get the latest SVN version control. Operation steps: Tortoisesvn→show log→ Select the version to roll back → right-click →export. Then overwrite the modified file with your latest version and commit.
2. If you edit the project, without submitting the premise, you want to discard these changes, you can directly select Tortoisesvn→revert can be updated to the latest version of the project.
3. If you want to return to a certain version, you can directly choose Tortoisesvn→update to reversion, so that we can put our version back to your selected version, in this case, SVN does not show a conflict, and the newly created files are still there, But in this case you won't be able to edit directly on your back-up version, because SVN's version control is still on the newest trunk. We need to update and resolve the conflict.
4. You can directly select revert changes from this revision so that you can resolve the conflict directly and submit. But the problem with this approach is that you don't have any new files, and the entire project is rolled back to the previous version. 5. You can roll back to the version you want from the log, select the version you want from the log, and update item to reversion, in which case SVN doesn't show any conflicts and the newly created file is still there. But in this case you won't be able to edit directly on your back-up version, because SVN's version control is still on the newest trunk. We need to update and resolve the conflict

SVN back version

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.