In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to achieve SVN version fallback". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Apache Subversion, usually abbreviated to SVN, is an open source version control system. Subversion was developed by CollabNet Inc in 2000 and is now a project of the Apache Software Foundation. It is also part of a rich developer and user community.
Compared with RCS and CVS, SVN adopts branch management system, and its design goal is to replace CVS. Most of the free version control services on the Internet are based on Subversion.
When we want to discard changes to the file, we can use the SVN revert command.
The svn revert operation will undo local changes in any file or directory.
We modify the file readme to check the file status.
Root@runoob:~/svn/runoob01/trunk# svn statusM readme
At this time, we find that the modification error, to undo the modification, through the svn revert file readme to return to the unmodified state.
Root@runoob:~/svn/runoob01/trunk# svn revert readme Reverted 'readme'
Check the status again.
Root@runoob:~/svn/runoob01/trunk# svn status root@runoob:~/svn/runoob01/trunk#
After the revert operation, the readme file is restored to its original state. The revert operation can restore not only a single file, but also an entire directory. Restore the directory with the-R command, as follows.
Svn revert-R trunk
But what if we want to restore a committed version.
In order to eliminate an old version, we must undo all changes in the old version and submit a new version. This operation is called reverse merge.
First, find the current version of the repository, which is now version 22, and we need to undo it back to the previous version, such as version 21.
Svn merge-r 22:21 readme "how to implement SVN version fallback" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.