如何将 svn 文件签出到当前目录以外的其他目录

如何将 svn 文件签出到当前目录以外的其他目录

当我们使用时svn checkout,它总是将文件检出到当前目录。

我们如何将文件签出到另一个目录?我已阅读svn help checkout,但我找不到允许我执行此操作的选项。

答案1

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

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.

您看到的最后一个参数([PATH])是您想要签出的目录的路径。

相关内容