Recursively add files using svn command line

Source: Internet
Author: User
Use the svn command line to recursively add files-general Linux technology-Linux programming and kernel information. The following is a detailed description. The svn tool (similar to TortiseSVN) has not been found in Linux ). Of course, eSVN is also good, but it is not very used to use it. Finally, we chose the original svn command line tool for version control.

Some command lines are easy to use. Commands such as svn checkout and svn commit basically make it difficult to use a GUI. The only troublesome command is svn add, because the newly added files are stored in different directories step by step. Some files in these directories already exist in the controlled svn folder, the directories where some files are located are newly added. Simply entering svn add will only mark the files in the current directory. Instead of recursively marking all the files in this directory including subdirectories that need to be added as Tortise does, how can we implement recursive addition of subdirectories similar to TortoiseSVN? I checked svn information. In fact, this method can be implemented. The method is to switch to the directory where the file needs to be added and input svn add *? Force, use? The force parameter can ignore errors that have been added to some subdirectories in version control. The add directory originally supports recursion. Finally, enter the svn commit command, so the new file will be submitted to the version library.
Related Article

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.