Importing source code to GitHub
You can import repositories to GitHub using the command line or external migration tools.
About GitHub Importer
If you have source code in Subversion, Mercurial, Team Foundation Version Control (TFVC), or another Git repository, you can move it to GitHub using GitHub Importer.
Importing a repository with GitHub Importer
If you have a project hosted on another version control system, you can automatically import it to GitHub using the GitHub Importer tool.
Updating commit author attribution with GitHub Importer
During an import, you can match commits in your repository with the GitHub account of the commit author.
Importing a Git repository using the command line
Importing Git projects using the command line is suitable when your existing code is hosted on a private network.
Adding locally hosted code to GitHub
Learn how to add existing source code or repositories to GitHub Enterprise Cloud from the command line using GitHub CLI or Git Commands. Then, share your code and invite others to work with you.
Source code migration tools
You can use external tools to move your projects to GitHub.