akhtar
akhtar

Reputation: 1294

SVN checkout the contents of a folder, not the folder itself

i want to checkout my WebRoot folder content not WebRoot folder itself.

i import my content by

there is two folder in /tmp/easton is src and WebRoot

svn import -m 'import source files' /tmp/easton svn://209.235.175.18/easton/

i try

svn checkout svn://209.235.175.18/easton/WebRoot

but it create WebRoot folder to my easton directory. i want to add the content of webroot folder not itsself folder webroot.

Upvotes: 0

Views: 1901

Answers (4)

svlzx
svlzx

Reputation: 192

To checkout just content of your svn folder, just add a dot at the end of your command:

svn checkout svn://209.235.175.18/easton/WebRoot .

To checkout just content of your svn folder into your local folder:

svn checkout svn://209.235.175.18/easton/WebRoot /home/seval/my_project_folder

Upvotes: 1

akhtar
akhtar

Reputation: 1294

ya i did by

svn checkout svn://209.235.175.18/easton/WebRoot /var/www/html/easton

Upvotes: 0

khmarbaise
khmarbaise

Reputation: 97359

The intention you have does not work. Cause SVN needs a separate directory where to checkout to. so i would suggest to checkout it like the following

svn checkout svn://209.235.175.18/easton/  checkout-folder

This will create the checkout-folder with the contents of easton folder from your repository.

Upvotes: 1

Dialecticus
Dialecticus

Reputation: 16761

That happens when you omit the PATH part of svn checkout command. Check out (hehe) the manual: http://svnbook.red-bean.com/en/1.0/re04.html

Upvotes: 0

Related Questions