StraightCirle
StraightCirle

Reputation: 182

How to use svn commanline to checkout folder names having spaces

I am trying to use svn command line to checkout a directory from my svn trunk. But this folder name has space in between them. So I am not able to checkout. I am not facing any issues with SVN GUI.

What i am trying in svn --username test--password test co http://svn-internal/repos/trunk/ABC/Monday Morning.

I am getting error like repository does not exist.What is the right way to specify directory names having spaces in command line?

Upvotes: 0

Views: 5302

Answers (2)

Hans
Hans

Reputation: 1916

Putting quotations did not help me on a AIX box. I had to use ASCII space character.

Example: I'm trying to checkout "http://server.com/svn/project location"

svn checkout http://server.com/svn/project%20location

Ref: https://www.w3schools.com/tags/ref_urlencode.asp

Upvotes: 1

Y.N
Y.N

Reputation: 5257

Try

svn co "my repo" "local path"

Use double quotes for repo url and local path in any svn command, if you need the long path.

Upvotes: 2

Related Questions