Azat
Azat

Reputation: 681

SVN: moving files from inside the folder

How to move all files (including .htaccess etc.) using svn move https://example.com/repos/123/* https://example.com/repos/?

It says "svn: Path https://example.com/repos/123/* does not exist in revision NN"

Upvotes: 5

Views: 1718

Answers (2)

Daniel Gehriger
Daniel Gehriger

Reputation: 7468

I don't think you can use wildcards with repository URLs.

You need to check out https://example.com/repos/123/. Then run svn move foo\123\* foo\ and commit.

Upvotes: 2

Robert
Robert

Reputation: 42575

svn move does not support wild cards. In the SVN redbook they state that this command can "Move and schedule a file or directory":

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.move.html

You therefore have to call svn move for each file in the directory.

I suggest you to write a short script that does this for you or try to use one of the Subversion GUI tools.

Upvotes: 4

Related Questions