Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accidentally committed the .svn directory

Tags:

svn

I accidentally committed a folder named .svn to a Subversion repository. Now when I try to check out or update I get this error message:

svn: Failed to add directory 'oops/conferences/.svn': an unversioned directory of the same name already exists

I removed the directory in the next commit, but that didn't help. Any ideas?

like image 630
Patrick McElhaney Avatar asked Oct 25 '10 18:10

Patrick McElhaney


People also ask

What is the .svn folder?

svn, also known as the working copy's administrative directory. The files in each administrative directory help Subversion recognize which files contain unpublished changes, and which files are out of date with respect to others' work.

Where is the .svn file located?

svn files may be inserted into the source code tree and there is also usually a top-level directory named . svn (just the extension, no root name).

How to remove file from svn repository?

To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…


1 Answers

Have you tried to remove the folder directly in the SVN repository?

svn delete http://my.svnserver.org/path/.svn

Most SVN commands can take either a local path into the working copy or an URL into the repository. You should be careful with the latter, since this performs the action directly, without any need to commit.

like image 91
sbi Avatar answered Oct 01 '22 21:10

sbi