Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn import is giving error

i am working on svn project and i am totally newbie.i am learning SVN from tutorialspoint. i have create repository successfully. and created directories for trunk, branches and tags using following commands

mkdir /tmp/svn-template
mkdir /tmp/svn-template/trunk
mkdir /tmp/svn-template/branches
mkdir /tmp/svn-template/tags

now i want to import that dir to my repository using following command

svn import -m 'Create trunk, branches, tags directory structure' /tmp/svn-template/

but it gives me an error " svn: E205000: Try 'svn help' for more info svn: E205000: Invalid URL '/root/tmp/svn-template' "

please help me guys

like image 623
ashish zarekar Avatar asked Feb 03 '26 10:02

ashish zarekar


1 Answers

You forgot to specify the last argument, your repository URL.

For example:

svn import -m 'Create ...' /tmp/svn-template/ http://svn.myserver.com/repo/svn-template/

Be aware that your local copy will not be under version control after that. You must make a checkout of a working copy in another directory.

cd /somewhere/else
svn checkout http://svn.myserver.com/repo/svn-template/
like image 123
Rafael Z. Avatar answered Feb 05 '26 23:02

Rafael Z.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!