1.創(chuàng)建倉(cāng)庫(kù)
svnadmin create 'repositoryName'
2.在repository文件中修改如下文件
//修改svnserve.conf
anon-access =read
auth-access =write
password-db =passwd
authz-db =authz
//passwd中添加用戶
[users]
harry = harryssecret
sally = sallyssecret
//authz中權(quán)限控制如:
admin_group = tony,zzht//給admin_group中添加用戶
[/] // 任意目錄下的文件
@admin_group = rw//讀寫權(quán)限
//
3.啟動(dòng)svn服務(wù)
svnserve -d -r /your repository path
//啟動(dòng)后終端無(wú)日志內(nèi)容,可在“活動(dòng)檢測(cè)器”中搜索svn,可見svnserve進(jìn)程開啟
4.將工程添加到svn中進(jìn)行管理
svn import project_path svn://localhost/svn/repository/project_name–username username –m “Initial import”
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。