Migrating existing Git repositories to Helix TeamHub

The following steps are needed in order to migrate existing Git repositories to Helix TeamHub:

  1. Create a new repository in Helix TeamHub project. You can accomplish this either through quick actions or from the repositories screen:
    Create new repository from quick actions
  2. Clone the repository you wish to migrate:
    git clone --bare <OLD-REPOSITORY-URL>
  3. Go to the repository directory:
    cd <YOUR-REPOSITORY-NAME>
  4. Obtain the clone URL for the repository you created in Helix TeamHub from the repository view:
    Helix TeamHub Git repository clone URL
  5. Change the clone URL of the repository you cloned to point to the repository you created in Helix TeamHub with the following command:
    git remote set-url origin <HELIX-TEAMHUB-REPOSITORY-URL>
  6. Push the repository to Helix TeamHub:
    git push --mirror
    If you copied the clone URL with SSH as an access method, you need to have your SSH key added to Helix TeamHub in order to push the changes.
Updated on: 12 September 2017