Use the REST API to migrate the repositories and users of your organization from GitHub.com to GitHub Enterprise Server.
REST API endpoints for organization migrations
Use the REST API to export one or more repositories so you can move them to GitHub Enterprise Server.
REST API endpoints for source imports
Use the REST API to start an import from a Git source repository.
REST API endpoints for user migrations
Use the REST API to review, backup, or migrate your user data stored on GitHub.