Chinaunix

标题: 有关merge的小知识 [打印本页]

作者: shijiang1130    时间: 2008-10-29 16:30
标题: 有关merge的小知识
Merge a branch back into the trunk (assuming that            you have a working copy of the trunk, and that the branch            was created in revision 250):
$ svn merge -r 250:HEAD http://svn.red-bean.com/repos/branches/my-branch
U  myproj/tiny.txt
U  myproj/thhgttg.txt
U  myproj/win.txt
U  myproj/flo.txt
If you branched at revision 23, and you want to            merge changes on trunk into your branch, you could do            this from inside the working copy of your branch:
$ svn merge -r 23:30 file:///tmp/repos/trunk/vendors
U  myproj/thhgttg.txt

To merge changes to a single file:
$ cd myproj
$ svn merge -r 30:31 thhgttg.txt
U  thhgttg.txt
作者: nicozhou    时间: 2008-11-22 10:08
mark,以前merge老是出错。

SVN的merge功能好强的。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2