Svn problem. I can not add it, because it is already in another SVN

svn add guess_language/ svn: warning: 'guess_language' is already under version control 

Why is this? When I downloaded it, it was under SVN. (I downloaded it from SVN) How to remove this svn ... so that I can turn it into a regular directory?

+6
linux unix svn
source share
6 answers

Delete the .svn directory inside guess_language/ and it is the parent (if it also came from another SVN repository). This should allow you to add it to another SVN repository.

This also needs to be done recursively through children's guess_language . A command that can do this for you (depending on your Linux environment):

 find . -name '.svn' -type d -exec rm -rf {} \; 

(You probably shouldn't just take it for granted, test it with a non-removable version, i.e. find . -name '.svn' -type d and make sure that the listed directories only are the ones you want to delete.)

+5
source share

you can force it to be added to your repository. Using:

 svn add --force [folder] 
+3
source share

guess_language hidden directory named .svn will appear inside the guess_language directory. This is how SVN knows that a directory is under version control. Delete this directory and you can add it to your SVN repository. You will need to do this for each directory, as each directory will have its own .svn directory.

(Aside, if you look at the contents of a file named entries inside this directory, you can see the URL of the SVN repository from which the directory originally belonged)

+1
source share

If you need a "copy" of the directory outside of version control, use svn export. The exported directory will contain all the contents of the control content of the original version, but will be a "normal directory".

Sincerely.

+1
source share

Delete all .svn directories.

 cd guess_language find . -name .svn | xargs rm -fr 
0
source share

As others have said, remove the .svn directories to make subversion .svn that this is checking a working copy from some repository. In the future, you can svn export instead of svn checkout download files from svn without creating a working copy from them.

0
source share

All Articles