当我们使用 时svn checkout
,它总是将文件检出到当前目录。
我们如何将文件检出到另一个目录?我已阅读svn help checkout
,但找不到让我这样做的选项。
svn co url://some/url name-of-directory-you-want
Run Code Online (Sandbox Code Playgroud)
来自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.
Run Code Online (Sandbox Code Playgroud)
您看到的最后一个参数 ( [PATH]
) 是您希望将其检出的目录的路径。