安装svn服务
#debian系列:sudo apt-get install subversion
#redhat系列:sudo yum install subversion
#suse系列:sudo zypper install subversion
常用命令: Available subcommands: add blame (praise, annotate, ann) cat changelist (cl) checkout (co) cleanup commit (ci) copy (cp) delete (del, remove, rm) diff (di) export help (?, h) import info list (ls) lock log merge mergeinfo mkdir move (mv, rename, ren) propdel (pdel, pd) propedit (pedit, pe) propget (pget, pg) proplist (plist, pl) propset (pset, ps) resolve resolved revert status (stat, st) switch (sw) unlock update (up)
每个命令都可以通过--help来获取帮助
例如:#svn list --help
查看SVNHome中所有文件
#svn list https://172.17.160.220:443/svn/DSBU-SVN
检出到test中
#svn checkout https://172.17.160.220:443/svn/DSBU-SVN ./test
更新版本库:
切换目录到之前检出的文件目录,然后执行命令:svn update
问题一: Error validating server certificate for 'https://172.17.160.220:443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! - The certificate hostname does not match. Certificate information: - Hostname: CNWJNDSBUSVR.delta.corp - Valid: from Apr 7 00:48:16 2016 GMT until Apr 5 00:48:16 2026 GMT - Issuer: - Fingerprint: D2:D0:5E:A5:93:24:C1:76:10:7F:DF:FF:78:A3:EA:33:20:12:E8:64 (R)eject, accept (t)emporarily or accept (p)ermanently?
选择p忽略问题
提交修改
#svn commit -m "说明" svn本地检出的文件夹地址
例如:svn commit -m "修正tcp异常" ./NetworkProtocol