#### On SVN server (name is svr)
## go to area you want to store db
% cd /home/backups/subversion
% svnadmin create "$PWD"
% more conf/svnserve.conf
% cd conf
% cp svnserve.conf svnserve.conf.bak
% vi passwd svnserve.conf
## create password file
% diff svnserve.conf*
8c8
< [general]
---
> # [general]
19c19
< password-db = passwd
---
> # password-db = passwd
% cat passwd
[users]
user1 = PASSWORD
user2 = PASSWORD
% svnserve -r "$PWD" -d
#### On svn client (programmers machine)
## Create svn dir structure
mkdir branches tags trunk
cp -r PROJECT trunk
## initial import of directory
% svn import --username $USER $PWD svn://svr/PROJECT/ -m "initial import"
## Now lauch svn client
% smartsvn.sh
% java -jar supervision-0.1.jar
% tkcvs
## If that does not work, use svn command line
$ svn import /tmp/project file:///path/to/repos -m "initial import"
$ svn checkout file:///path/to/repos/trunk project
$ svn status
$ export VISUAL=vim
$ svn ci
$ svn update
How to SVN
最新推荐文章于 2024-05-10 14:12:58 发布