svn help

来源:互联网 发布:后现代 知乎 编辑:程序博客网 时间:2024/06/06 00:48

[root@localhost ~]# svn -h
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.4.2.
Type 'svn help <subcommand>' for help on a specific subcommand.
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 是个版本控制系统的工具。
欲取得详细资料,请参考 http://subversion.tigris.org/
[root@localhost ~]#

[root@localhost tmp]# svn add -h
add: 把文件和目录放入版本控制中,
通过调度加到档案库。它们会在下一次提交时加入。
用法:add 路径...


有效选项:
  --targets 参数         : 传递文件 ARG 内容为附件参数
  -N [--non-recursive]     : 只在单个目录操作
  -q [--quiet]             : 打印尽可能少
  --config-dir 参数      : 从目录 ARG 读取用户配置文件
  --force                  : 强制操作运行
  --no-ignore              : 忽略默认值和 svn:ignore 属性
  --auto-props             : 使自动属性有效
  --no-auto-props          : 使自动属性无效


[root@localhost tmp]#

[root@localhost tmp]# svn blame -h
blame (praise, annotate, ann): 输出指定文件或地址(URL)的内容,每行包含修订版和作者信息。


用法:blame 目标[@修订版]...


      如果指定了修订版,将从指定的修订版开始查找。




有效选项:
  -r [--revision] 参数   : 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
  -v [--verbose]           : 打印附加信息
  --incremental            : 给予适合输出的
  --xml                    : 输出为 XML
  -x [--extensions] 参数 : Default: '-u'. When Subversion is invoking an
                             external diff program, ARG is simply passed along
                             to the program. But when Subversion is using its
                             default internal diff implementation, or when
                             Subversion is displaying blame annotations, ARG
                             could be any of the following:
                                -u (--unified):
                                   Output 3 lines of unified context.
                                -b (--ignore-space-change):
                                   Ignore changes in the amount of white space.
                                -w (--ignore-all-space):
                                   Ignore all white space.
                                --ignore-eol-style:
                                   Ignore changes in EOL style
  --force                  : 强制操作运行
  --username 参数        : 指定用户 ARG
  --password 参数        : 指定密码 ARG
  --no-auth-cache          : 不要缓冲用户验证
  --non-interactive        : 不要交互提示
  --config-dir 参数      : 从目录 ARG 读取用户配置文件


[root@localhost tmp]#

[root@localhost tmp]# svn cat -h
cat: 输出指定文件或地址(URL)的内容。
用法:cat 目标[@修订版]...


      如果指定了修订版,将从指定的修订版开始查找。




有效选项:
  -r [--revision] 参数   : 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
  --username 参数        : 指定用户 ARG
  --password 参数        : 指定密码 ARG
  --no-auth-cache          : 不要缓冲用户验证
  --non-interactive        : 不要交互提示
  --config-dir 参数      : 从目录 ARG 读取用户配置文件


[root@localhost tmp]#

[root@localhost tmp]# svn checkout -h
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.


有效选项:
  -r [--revision] 参数   : 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]             : 打印尽可能少
  -N [--non-recursive]     : 只在单个目录操作
  --username 参数        : 指定用户 ARG
  --password 参数        : 指定密码 ARG
  --no-auth-cache          : 不要缓冲用户验证
  --non-interactive        : 不要交互提示
  --config-dir 参数      : 从目录 ARG 读取用户配置文件
  --ignore-externals       : 忽略外部定义

[root@localhost tmp]#

[root@localhost tmp]# svn cleanup -h
cleanup: 递归清理工作拷贝,去除锁,记录未完成操作,等等。


用法:cleanup [路径...]


有效选项:
  --diff3-cmd 参数       : 使用 ARG 作为合并命令
  --config-dir 参数      : 从目录 ARG 读取用户配置文件


[root@localhost tmp]#

[root@localhost tmp]# svn commit -h
commit (ci): Send changes from your working copy to the repository.
usage: commit [PATH...]


  A log message must be provided, but it can be empty.  If it is not
  given by a --message or --file option, an editor will be started.
  If any targets are (or contain) locked items, those will be
  unlocked after a successful commit.


有效选项:
  -q [--quiet]             : 打印尽可能少
  -N [--non-recursive]     : 只在单个目录操作
  --targets 参数         : 传递文件 ARG 内容为附件参数
  --no-unlock              : 不要锁定目标
  -m [--message] 参数    : specify log message ARG
  -F [--file] 参数       : read log message from file ARG
  --force-log              : 强制校验日志信息资源
  --editor-cmd 参数      : 使用 ARG 作为外部编辑器
  --encoding 参数        : 指定的值 ARG 为字符编码
  --username 参数        : 指定用户 ARG
  --password 参数        : 指定密码 ARG
  --no-auth-cache          : 不要缓冲用户验证
  --non-interactive        : 不要交互提示
  --config-dir 参数      : 从目录 ARG 读取用户配置文件


[root@localhost tmp]#


原创粉丝点击