svn ci vs svn commit。有区别吗?

时间:2015-03-02 01:27:26

标签: bash svn

两个命令之间是否存在差异:

svn ci -m "checking in."

svn commit -m "checking in."

2 个答案:

答案 0 :(得分:5)

命令svn helpcommit列为快捷命令ci的命令。它们是等价的。

$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.8.11.
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
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   ...

答案 1 :(得分:4)

文档说ci只是commit的快捷方式,所以它们相当于:

http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.commit.html