Do I have to delete my project in order to check it from svn?

This is my first attempt to create an svn repository, and I'm confused.

I have a project in /var/www/project, and I have a /var/svn/dir for storing repositories, so I run:

$ svnadmin create /var/svn/project

and I import my tree using

$ svn import /var/www/project file:///var/svn/project/trunk

so far so good - I think

Now I need a working copy, but I can’t check in my existing directory, or I get

svn: Failed to add file 'some.file': an unversioned file of the same name already exists

am I supposed to delete the entire project tree and then check it from svn? Also, is this the right way to create a repository?

+3
source share
4 answers

you can rename the source directory of the project if you are not sure, then check the new directory

+4
source

You can do

svn checkout --force file:///var/svn/project/trunk /var/www/project

, .

+4

Yes, after importing the project into the repository, you should check :

Please note that after import is complete, the source tree will not be converted to a working copy. To get started, you still need svn to check the new working copy of the tree.

Remember to erase the source code first.

0
source

Just go to the new directory. You can always rename it later as soon as you are sure.

0
source

Source: https://habr.com/ru/post/1730430/


All Articles