jill@jill-desktop:~/tac/repositories/tac5$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.6.12.
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: //这些命令中关于 工程的都是只能在 working copy中使用的。否则,会提示,不是一个working copy
add
blame (praise, annotate, ann)
cat
changelist (cl)
checkout (co)
cleanup
commit (ci)
copy (cp)
delete (del, remove, rm)
diff (di)
export
help (?, h)
import
info
list (ls)
lock
log
merge
mergeinfo
mkdir
move (mv, rename, ren)
propdel (pdel, pd)
propedit (pedit, pe)
propget (pget, pg)
proplist (plist, pl)
propset (pset, ps)
resolve
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/
新建一个资源库
$svnadmin create /home/jill/repository
把一个工程导入到资源库:
$svn import /home/jill/myproject file:///home/jill/repository
然后进入目录: /home/jill/repository 就可以看见有一个新的文件夹:myproject
为资源库打开svn 服务:
$svnserve -r -d file:///home/jill/repository
-r表示服务的 根目录,这样就可以用 svn://127.0.0.1/来代表:file:///home/jill/repository 了(正确性有待确认)。
-d 表示作为精灵进程
从资源库检出工程:
$svn co svn://127.0.0.1/myproject project_name
表示从 /home/jill/repository中 把 myproject检出,检出到当前目录,工程的名字是project_name
那么这个 project_name 文件夹是个 working copy.
进入project_name,就可以使用 svn info等命令