1. Install SubGit tool according to the Installation guide.

  2. Configure GitHub


     
  3. Configure local repository:

    Run the command below on behalf of the same user you use to serve Git repository:

    $ subgit configure --layout auto --trunk TRUNK SVN_URL GIT_REPO

    where

  4. Perform SubGit installation into local Git repository:

    $ subgit install GIT_REPO

    where 
       GIT_REPO  – a path to the new Git repository where data from the SVN project will be imported to.

    $ subgit install /home/user/repo.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 '/home/user/repo.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.
  5. Sync local Git repository with GitHub:

    In order to maintain reliable two-way mirror using setup described above, Git users have to push their changes to SubGit-managed Git repository rather than submitting changes to GitHub repository directly. If neverthelessyou need to fetch changes from GitHub - follow the instruction in GitHub mirror full guide.

  6. 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:

    $ sudo subgit register --key subgit.key GIT_REPO

    where

         GIT_REPO – a path to your newly created Git repository.

    $ sudo subgit register --key subgit.key /home/user/repo.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.
  7. Get support.

    Have you faced with any problems, see the following guide for more details:

     

Would you have any assistance, don't hesitate to contact us at support@subgit.com.