SVN 建立分支最简单方法

  • 建立分支最简单的方法

svn copy可以直接对两个URL操作,下面是从最新revision上创建branches

$ svn copy http://svn.example.com/repos/calc/trunk /

           http://svn.example.com/repos/calc/branches/my-calc-branch /

      -m "Creating a private branch of /calc/trunk."

                              

            Committed revision 341.

·         基于某个revision创建branches

     $ svn copy http://svn.example.com/repos/calc/trunk /

           http://svn.example.com/repos/calc/branches/my-calc-branch  -r 341 /

      -m "Creating a private branch of /calc/trunk."

 

你可能感兴趣的:(SVN,url,branch)