In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you the example analysis of batch operation of svn command line on Linux. I hope you will get something after reading this article. Let's discuss it together.
Although git is very good, most of the time I also use git, but sometimes for some reason, I have to use svn, and there is no software like tortoisesvn on windows to use svn on linux (there is something similar on the Internet, but it hasn't been successful for a long time), so just go to the command line.
We just install svn directly, and then use the command after the file is modified.
Svn status
To view the tracking information of the file, some code names will be used here, which corresponds to
"No modification" A "add" C "conflict" D "delete" G "merge" I "ignore" M "change" R "replace" X "is not under version control, but is used by external definition"? " Not included in version control "!" The project has been lost (deleted by a non-svn command) or the project under incomplete "~" version control has the same name as other types of projects.
What we need to consider here is "missing" and "not included in version control", that is, "!" And "?", just use the following command directly.
Svn add `svn status | grep? | awk'{print $2} '`svn delete `svn status | grep! | awk' {print $2}'`
Notice that the backquotation mark in the command is the one next to the "1" under the "esc" key, indicating a command.
After using the above command, the status of the corresponding file becomes the corresponding "D" and "A", and then you can use the command
Svn commit-m "xxxx"
Go ahead and submit!
The two command operations mentioned here will have problems with the existence of spaces in the file.
After reading this article, I believe you have some understanding of "sample Analysis of batch Operation of svn Command Line on Linux". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!
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.