下面代码来自于我的MacBook:
joshuas-macbook:~ Joshua$ svn --help
usage: svn
Subversion command-line client, version 1.4.4.
Type ’svn help
Type ’svn –version’ to see the program version and RA modules
or ’svn –version –quiet’ to see just the version number.
Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.
Available subcommands:
add
blame (praise, annotate, ann)
cat
checkout (co)
cleanup
commit (ci)
copy (cp)
delete (del, remove, rm)
diff (di)
export
help (?, h)
import
info
list (ls)
lock
log
merge
mkdir
move (mv, rename, ren)
propdel (pdel, pd)
propedit (pedit, pe)
propget (pget, pg)
proplist (plist, pl)
propset (pset, ps)
resolved
revert
status (stat, st)
switch (sw)
unlock
update (up)
Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/
CheckOut:
joshuas-macbook:~ Joshua$ svn co --help
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.
Valid options:
-r [--revision] arg : ARG (some commands also take ARG1:ARG2 range)
A revision argument can be one of:
NUMBER revision number
‘{’ DATE ‘}’ revision at start of the date
‘HEAD’ latest in repository
‘BASE’ base rev of item’s working copy
‘COMMITTED’ last commit at or before BASE
‘PREV’ revision just before COMMITTED
-q [--quiet] : print as little as possible
-N [--non-recursive] : operate on single directory only
–username arg : specify a username ARG
–password arg : specify a password ARG
–no-auth-cache : do not cache authentication tokens
–non-interactive : do no interactive prompting
–config-dir arg : read user configuration files from directory ARG
–ignore-externals : ignore externals definitions
常用的有:
-r 版本号
–username 用户名
–password 密码
svn checkout http://demo.com/repo --username joshua --password 123 -r 8888
svn checkout file:///usr/local/repo --username joshua --password 123
