svn 的搭建与使用 (二)
1.准备工作
[root@feng ~]# mkdir localsvn
[root@feng ~]# cd localsvn/
[root@feng localsvn]# touch 1.html 2.html; cd
2.import命令
[root@feng ~]# svn import /root/localsvn/ file:///opt/svn/feng.com/ -m "one"
Adding localsvn/1.html
Adding localsvn/2.html
Committed revision 1.
将文件上传至版本库 file 指定版本库 -m 注释 import 指定本地文件路径
3.checkout命令
root@feng ~]# svn checkout svn://172.17.90.200/feng download
Authentication realm: <svn://172.17.90.200:3690> /opt/svn/feng
Password for 'root':
Authentication realm: <svn://172.17.90.200:3690> /opt/svn/feng
Username: zhang
Password for 'zhang':
Store password unencrypted (yes/no)? no
A download/1.html
Checked out revision 1.
3.add命令
[root@feng ~]# cd download/
[root@feng download]# ls
1.html
[root@feng download]# touch 2.html
[root@feng download]# svn add 2.html
A 2.html
4.commit
[root@feng download]# svn commit -m "new" 2.html