CentOS 7下搭建配置 SVN 服务器
生活随笔
收集整理的這篇文章主要介紹了
CentOS 7下搭建配置 SVN 服务器
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原文鏈接:https://www.cnblogs.com/tdalcn/p/6937714.html
同步:http://blog.csdn.net/u011884440/article/details/70495615
如果使用用戶組管理權限的話在group下這樣用
admin = aaa,bbb,ccc[/] @admin = rw * =如果要自動把提交同步到web服務器上的話
我們先將SVN版本庫中的一個項目checkout到網站目錄:
svn co svn://localhost/yunms /home/yunms --username <用戶名> --password <密碼>在版本庫目錄下新建一個post-commit鉤子:(The post-commit hook is invoked after a commit.)
vim /home/svn/tcyg/hooks/post-commit #!/bin/sh REPOS="$1" REV="$2" export LANG="zh_CN.UTF-8" #防止亂碼 svn update /home/www/ --username Hwei --password 123456 --no-auth-cache #設置登陸賬號密碼并不緩存注:不要遺漏第一行的#!/bin/sh,否則post-commit會報代號255的錯誤。然后改這個文件的權限?
chmod 755 /home/svn/tcyg/hooks/post-commit沒改權限提交時也會報255的錯誤
轉載于:https://www.cnblogs.com/gavinyyb/p/8393443.html
總結
以上是生活随笔為你收集整理的CentOS 7下搭建配置 SVN 服务器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: unittest单元测试简单介绍
- 下一篇: Referenced file cont