工作副本------>工作副本 工作副本------>版本库(不可跨库) 版本库------->工作副本(允许跨库) 版本库------->版本库(不可跨库)
1、 工作副本拷贝到工作副本
[root@localhost test2]# ls
aa.txt contract.html css img index.html js
[root@localhost test2]# svn cp index.html index_bak.html
A index_bak.html
这个命令直接代替我们使用原生的linux命令cp 拷贝某个文件,然后再使用svn add命令
拷贝某个具体版本的文件,加上-r参数,接入版本号即可
[root@localhost test2]# svn copy -r 4 index.html index_v4.html
A index_v4.html
批量拷贝,只能是批量拷贝到某一个目录,因为同一个目录避免产生同名文件
[root@localhost test2]# svn mkdir temp
A temp
[root@localhost test2]# ls
aa.txt contract.html css img index_bak.html index.html js temp
[root@localhost test2]# svn cp contract.html index.html ./temp/
A
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/223756.html原文链接:https://javaforall.net
