SVN搭建整理笔记

可以先装好httpd

需要先下载neon-0.25.5.tar.gz  解压后改名为neon放在svn代码顶层,然后configure;make ;make install

 

vim /etc/httpd/conf.d/subversion.conf

<Location /repos>
DAV svn
SVNPath /var/www/svn/repos    (此处改为工程所在地址)
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>

 

指定账户和密码

htpasswd -cm /etc/svn-auth-conf yourusername
htpasswd -m /etc/svn-auth-conf anotherusername

 

创建软件仓库

cd /$project_path

svnadmin create repos

chown -R apache.apache repos
service httpd restart

 

导入已有工程:

svn import /tmp/mytestproj/ file:///var/www/svn/repos/mytestproj -m "Initial repository layout for mytestproj"
从仓库下载

svn co http://yoursvnserver/repos/mytestproj
提交到仓库

svn commit -m "Added a line to testconf1.cfg."

-m后的信息相当于修改日志。

 

添加或删除子项目

svn add configurations/CentOS-Base.repo
svn commit -m "Added the CentOS Yum repo file."

日志

svn log http://yoursvnserver/repos -- For the entire repository
svn log http://yoursvnserver/repos/mytestproj -- For the specific project
svn co -r 1 http://yoursvnserver/repos/mytestproj

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值