Method: 1. Use the "find.-type d -name ".svn"|xargs rm -rf" command to delete the specified svn file; 2. Use the "find.-type d -iname ".svn" -exec rm -rf{}\" command deletes the specified svn file.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to delete svn files in Linux
Use Xshell to connect to the linux server
Enter the command to enter the directory where you want to delete SVN. For example:
cd /www/web/ziyiai/public_html
Enter the following command to delete the .svn directory in this directory, which means clearing the SVN information
find . -type d -name ".svn"|xargs rm -rf
or
find . -type d -iname ".svn" -exec rm -rf {} \;
Related recommendations: "Linux Video Tutorial》
The above is the detailed content of How to delete svn files in linux. For more information, please follow other related articles on the PHP Chinese website!