You can import repositories to GitHub using the command line or external migration tools.

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.

Source code migration tools

You can use external tools to move your projects to GitHub.