Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

connect_a_git_server_to_dagshub.md 3.1 KB

You have to be logged in to leave a comment. Sign In
title description
Mirror or Migrate a Git Server to DagsHub Mirror or migrate your Git server to DagsHub and get the benefits of a unified platform like experiment tracking, model management, and collaboration.

Mirror or Migrate a Git Server to DagsHub

If you have a project hosted on a Git provider (GitLab, BitBucket, etc.) and want to enjoy the added value DagsHub offers, you can easily mirror or migrate the project to DagsHub and enjoy the best of both worlds!

Note: We have a tighter integration for Git servers hosted on GitHub. To learn more about it, please see the GitHub Integration docs.

How DagsHub Mirror / Migrate git servers?

Mirror a Git server

When mirroring a remote Git server to DagsHub, behind the scenes, it clones all the commits and branches to the new DagsHub repository and displays them there. The original Git server stays the default Git remote while adding the unique DagsHub remotes (storage, experiment tracking, etc.) as an integral part of the project.


Mirrored repository remotes

The repository will be automatically synced every 24 hours or triggered manually by clicking on the sync button next to the project name. Behind the scenes, DagsHub pulls all the changes from the remote Git server and displays them.

![Sync button](assets/mirror-sync.png) Sync button

Mirror and Migrate Git servers

The migration process is identical to the connection but assumes you want to move the project's development entirely to DagsHub. Therefore, it will create a new Git remote server for the project and clone all the files from the original Git server to it. How to use it?

How to mirror a Git server to DagsHub?

  • Click the Create + button and choose the + New Repository option.

Mirror a repo
  • Select the Import Repository card.
![Import repository](assets/connect-1b.png) Mirror a repo
  • Choose the Other option on the Connection menu.
![Other reposito](assets/connect-2.png) Mirror a repo
  • Fill in the connection information:
![Connect a repo](assets/connect-3.png) Connect a repo
  1. The Git server address - can be an HTTP/HTTPS/GIT URL.
  2. If it requires authorization to access the Git server, please add the user name and authentication token (or password) needed to access it.
  3. The new DagsHub repository settings:
    • The repository owner (mandatory) - can be a user or an organization.
    • The repository name (mandatory).
    • Visibility (optional).
    • Description (optional).
  4. Select Mirror under Connectivity Mode.
  5. Launch the Connection.

How to migrate a Git server to DagsHub?

Follow the same steps as above, but select Migrate under Connectivity Mode.

![Migrate a repo](assets/migrate-3.png) Migrate a repo
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...