標籤:conf default 伺服器 read work href write use html
想完整走一遍svn布置及使用流程,試完整理了一下:
step 1:下載安裝
1、安裝SVN伺服器,到http://subversion.apache.org/packages.html 上下載windows版的SVN,並安裝。
Ctrl+R,輸入cmd進終端,在命令列下運行svn命令,如下,則安裝成功:
step 2:建立倉庫
建立一個倉庫空檔案夾E:\repos,並在repos檔案夾上右鍵選中TortoiseSVN-->create repository here
step 3:關聯存放目錄與倉庫
建立一個存放項目的檔案夾E:\working,並在working檔案夾內右鍵選中SVN Checkout,並在url of repository中輸入file:///E:/repos,在E:\working中將會產生.svn的檔案夾,表名已將working檔案夾與repos倉庫關聯起來了
step 4:將源碼放入倉庫
在working中放入原始碼sources,在sources右鍵TortoiseSVN-->Add,將sources加入到working檔案夾(被SVN管理的working檔案夾),然後TortoiseSVN--Commit提交到repository中
step 5:啟動svn服務
最後需要啟動SVN服務,在dos中輸入D:\Program Files\Subversion\bin>svnserve -d -r E:\repos
step 6:配置相關資訊
在E:\repos\conf的檔案中配置存取權限、使用者名稱、密碼
conf將
- # anon-access = read
- # auth-access = write
- # password-db = passwd
中的注釋去掉修改為
- anon-access = read
- auth-access = write
- password-db = passwd
- [users]
- # harry = harryssecret
- # sally = sallyssecret
- admin=admin
step 7:訪問
提供同事訪問的地址:svn://IP地址/sources
參考:
http://www.cnblogs.com/ivan0626/p/3783053.html
http://www.cnblogs.com/jinmingjie/archive/2012/06/05/2536995.html
windows 架設SVN伺服器