Skip to main content

Importing from Git

Migrating an existing Git repository to XetHub is quick and easy using the git xet repo migrate command. This command imports an existing repository from GitHub or any other Git remote into a XetHub repository. All branches and history are preserved, and all Git LFS pointer files are automatically translated to full files in XetHub.

Create a new repository

Using the (+) dropdown on the top right of the XetHub UI, create a new repository and use the Access button to view and copy the repository URL, which will look something like this:

https://xet@xethub.com:<user>/<repo>.git

Migrate the existing repository

git xet repo migrate --src=<Existing Repository> --dest=<New XetHub Repository URL>

For more options, run:

git xet repo migrate --help

After running this command, the new XetHub repository should exactly match the source repository.