1.  Configure Gerrit server:

  2. Configure the repository

  3. Establish a two-way mirror between SVN and Gerrit by the following command:

    > subgit install GIT_REPO

    where 

        GIT_REPO – a path to the Git repository.


    > subgit.bat install c:\gerrit\git\project.git
    
      SubGit version 3.2.4 ('Bobique') build #3670
    
      Translating Subversion revisions to Git commits...
    
      Subversion revisions translated: 10248.
      Total time: 2 hours 15 minutes 23 seconds.
    
      INSTALLATION SUCCESSFUL
    
      Your copy of SubGit is not registered for repository at 'c:\gerrit\git\project.git'.
    
      Obtain registration key at http://www.subgit.com/ and register SubGit with 'register' command; registration is free for Open Source, Educational and Startup projects.
    
      To uninstall SubGit use 'uninstall' command.



  4. When the command completed, the mirror is established and data from SVN is translated to Gerrit, so you can clone your new Git repository and start to work with it:

    > git clone GIT_REPO WORK_TREE

    where


    $ git clone http://gerrit.example.com/user/project.git C:\project.git
      Cloning into 'C:\project.git'...
      Password for 'http://user@example.com': 
      remote: Counting objects: 99, done.
      remote: Compressing objects: 100% (39/39), done.
      remote: Total 99 (delta 50), reused 99 (delta 50)
      Unpacking objects: 100% (99/99), done.



    If Git warns you that you are cloning an empty repository and you don't see your files in the working tree, most probably automatic branches and tags mapping didn't work correctly. In this case, mapping has to be set manually, see details on mapping in Branches and tags mapping.


  5. Try and buy.

    Note: the trial period for SubGit mirror is 30 days, after that period you should buy a license key at https://subgit.com/pricing

    Once you receive an email with a license key, upload this license key to your server and run the following command:

    > subgit register --key subgit.key GIT_REPO

    where

         GIT_REPO – a path to your newly created Git repository.


    > subgit register --key subgit.key C:\gerrit\git\project.git
    
       SubGit version 3.2.4 ('Bobique') build #3670
    
       Registration information:
    
         Registered for:       Example company
         Purchase ID:          OS-111111111111111
         Expiration date:      April 23, 2028
    
         You may use this key to register 9 more repositories (out of 10).
    
       REGISTRATION SUCCESSFUL
    
       Thank you for registering SubGit!
       Visit http://www.subgit.com/ in case you have any questions and for more information on SubGit.



  6. Get support:

    If you encounter any problems, see the following guide for more details:

Should you need assistance, don't hesitate to contact us at support@tmatesoft.com