These instructions explain how to migrate a repo from GitHub Enterprise Server to GitHub Enterprise Cloud using the gh gei
CLI when either:
- (a) you want to use an unsupported blob storage provider; or
- (b) you want to use a supported blob storage provider with different authentication
The following instructions assume that you have curl
and jq
installed. There are available for Linux, macOS and Windows Subsystem for Linux (WSL).
- Make a note of your GitHub Enterprise Server hostname (e.g.
github.acmecorp.com
) and expose it as theGHES_HOST
environment variable:export GHES_HOST=github.acmecorp.com
. - Make a note of the GitHub Enterprise Server organization that owns your origin repo, and expose it as the
GHES_ORGANIZATION
environment variable:export GHES_ORGANIZATION=engineering
. - Make a note of the name of the repo you are migrating in GitHub Enterprise Server, and expose it as the
GHES_REPO
environment variable:export GHES_REPO=webapp
.