A
A
Alexander Karpov2016-05-31 09:35:19
subversion
Alexander Karpov, 2016-05-31 09:35:19

How to checkout a folder using subversion that already has files and folders?

For example, there is a package on the server, not yet under version control:
+project
++folder
+++file.php
+++file2.php
++index.php

and there is identical everything in the svn repository. For example /svn/projects/project
If we do this in the project folder on the server:
svn co /svn/projects/project .
then we get abusive remarks from svn that (for example) the folder folder is not added to version control. And that's where it all ends. Somehow it is possible to impose checkout and up from the svn folder on top of the existing folder with its structure. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karpov, 2016-06-01
@Inkognitoss

You can merge a folder from the repository into an existing folder with forced svn update --force
After this command, the files in the folder for which the command is executed will be changed by the files from the repository. Moreover, other files that are not in the repository will not be touched. This will be convenient in the case, for example, when you pour a version from the repository into a new deployed project of some framework. I don't know if I explained it correctly enough, but the command svn update --force helped me

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question