Importing source code to GitHub
You can import repositories to GitHub using GitHub Importer, the command line, or external migration tools.
Importing a Git repository using the command line
If GitHub Importer is not suitable for your purposes, such as if your existing code is hosted on a private network, then we recommend importing using the command line.