Ubuntu – how to delete all .svn hiden files from the project to do an update in svn repository

svn

Hi, I have a problem using SVN repository. When I try to update my project in SVN I'm getting the following error:

oomsys@oomsysmob-6:~/brundelre3$ svn st
svn: warning: '.' is not a working copy
oomsys@oomsysmob-6:~/brundelre3$ svn up
Skipped '.'

I tried the things which explained about this error previously from the following links:

Removing .svn files from all directories

http://bookmarks.honewatson.com/2008/06/06/find-and-remove-hidden-folders-svn-ubuntu-linux-command-line/

http://www.ubun2.com/question/348/how_remove_all_svn_folders_recursively

but nothing solves my problem. I want to remove all the hidden files from my project.

Thanks

Nirmala Sudhir

Best Answer

You can remove all dot files in a folder using find and rm.

find . -name ".*" -type f | xargs rm -v

It searches for all dot files in the given folder, passed the results to rm which deletes it. It doesn't delete directories. When no files are found to delete, rm will return rm: missing operand.

Related Question