2008年10月10日星期五

svn的一些用法

由于现在一些需求,所以我要学svn
为什么要学它呢?因为我们接下来的一个实验要管理代码,所以我选择了google code作为储存代码的仓库了,不详细介绍了google code。因为现在很多人用,而且也比较简单了。
学习svn,当然先要下载一个它的客户端,安装好。
http://subversion.tigris.org/它的官方网站,可以下载,您要的!
手册下载http://svnbook.red-bean.com/
[gaowei@localhost myebook]$ mv IPv6.c trunk/
[gaowei@localhost myebook]$ ls
trunk
[gaowei@localhost myebook]$ cd trunk/
[gaowei@localhost trunk]$ cd ..
[gaowei@localhost myebook]$ svnadmin create tags
[gaowei@localhost myebook]$ svnadmin create branches
[gaowei@localhost myebook]$ ls
branches tags trunk
[gaowei@localhost myebook]$ svn import trunk https://myebook.googlecode.com/svn/trunk/ -m "first use svn"
增加 trunk/hooks
增加 trunk/hooks/pre-revprop-change.tmpl
增加 trunk/hooks/post-commit.tmpl
增加 trunk/hooks/post-lock.tmpl
增加 trunk/hooks/pre-commit.tmpl
增加 trunk/hooks/pre-lock.tmpl
增加 trunk/hooks/post-unlock.tmpl
增加 trunk/hooks/pre-unlock.tmpl
增加 trunk/hooks/start-commit.tmpl
增加 trunk/hooks/post-revprop-change.tmpl
增加 trunk/IPv6.c
增加 trunk/conf
增加 trunk/conf/svnserve.conf
增加 trunk/conf/passwd
增加 trunk/conf/authz
增加 trunk/db
增加 trunk/db/revs
增加 trunk/db/revs/0
增加 trunk/db/write-lock
增加 trunk/db/revprops
增加 trunk/db/revprops/0
增加 trunk/db/current
增加 trunk/db/uuid
增加 trunk/db/fs-type
增加 trunk/db/transactions
增加 trunk/db/format
增加 trunk/format
增加 trunk/dav
增加 trunk/locks
增加 trunk/locks/db.lock
增加 trunk/locks/db-logs.lock
增加 trunk/README.txt

提交后的版本为 6。
[gaowei@localhost myebook]$


我不知道它为什么要添加那么多呢?但是实际上才增加了三个
看这里http://code.google.com/p/myebook/source/browse/#svn/trunk

没有评论:

time