How to properly create an SVN tag from trunk?

前端 未结 9 1590
挽巷
挽巷 2021-01-29 17:04

I am creating my first project in Subversion. So far I have

 branches
 tags
 trunk

I think I immediately need to make branches singular and sta

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 18:00

    Just use this:

    svn  copy  http://svn.example.com/project/trunk  
               http://svn.example.com/project/branches/release-1
               -m  "branch for release 1.0"
    

    (all on one line, of course.) You should always make a branch of the entire trunk folder and contents. It is of course possible to branch sub-parts of the trunk, but this will almost never be a good practice. You want the branch to behave exactly like the trunk does now, and for that to happen you have to branch the entire trunk.

    See a better summary of SVN usage at my blog: SVN Essentials, and SVN Essentials 2

提交回复
热议问题