6

When we use svn checkout, it always checks out files to the current directory.

How can we checkout files to anther directory? I have read svn help checkout, but I couldn't find an option to let me do this.

1 Answer 1

6
svn co url://some/url name-of-directory-you-want

From svn help checkout:

$ svn help checkout
checkout (co): Check out a working copy from a repository.
usage: checkout URL[@REV]... [PATH]

  If specified, REV determines in which revision the URL is first
  looked up.

  If PATH is omitted, the basename of the URL will be used as
  the destination. If multiple URLs are given each will be checked
  out into a sub-directory of PATH, with the name of the sub-directory
  being the basename of the URL.

That last argument you see ([PATH]) is the path to the directory where you want it to be checked out.

1
  • i didn't notice this [path], thank you!
    – lovespring
    Apr 2, 2015 at 4:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .