Wednesday, November 30, 2011

How to create tag/branch with git-svn


The SVN server structure is like this:
http://foo.net/code/design/
                          |-- trunk/
                          |        |-- proj1
                          |        |-- proj2
                          |-- tags/
                          |       |-- forProj1
                          |       |-- forProj2
                          |-- branches/
                          |           |-- forProj1
To create the tag:
  1. Clone SVN:
    $ git svn clone http://foo.net/code/design --trunk=trunk/proj1 --tags=tags/forProj1 --branches=branches/forProj1 localProjName
  2. Then the tag can be created with simple command
    $ git svn tag -n -m "test tag" test_v1
Do the branch in the same way.
The original question and answer can check http://stackoverflow.com/questions/8306592/git-svn-how-to-create-a-tag-branch-for-a-sub-project-of-svn

No comments: