linux下svn cp branch分支

1 make a new branch named beta from HEAD like so:
svn copy http://example.com/repos/project/trunk http://example.com/repos/project/branches/beta
This will immediately create the new branch in the repository and doesn't do anything to your local copy.
make a new branch named ancient from an older revision n like so:
svn copy -r n http://example.com/repos/project/trunk http://example.com/repos/project/branches/ancient 
This is exactly the same as 1, but uses the specific revision.

3 make a branch named alpha from your local copy, assuming your current directory is trunk:

svn cp trunk branches/alpha
This will make the copy you requested, but does it locally. According
 to the SVN book, this is discouraged because it takes a lot longer than
 making the copy on the repository server (where the copy operation is 
essentially free).



There's also this caveat listed when you type svn help copy

刚好要建一个svn的分支,记录一下这个应该有用.
svn命令!

你可能感兴趣的:(linux下svn cp branch分支)