There are several ways to get your existing repository imported to GitHub.

Importing a repository from another version control system

Tip: The GitHub Importer is not suitable for all imports. For example, if your existing code is hosted on a private network, our tool won't be able to access it. If you're importing a Git repository, you may be able to import using the Command line.

If you have a project hosted on another version control system, you can automatically import it to GitHub using the GitHub Importer. For more information, see "Importing from other version control systems to GitHub."

Importing Subversion repositories

You can import your code from Subversion at the same time that you create a new repository. For more information, see "Importing from Subversion."

Importing using the command line

If the GitHub import tool 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. For more information, see "Importing a Git repository using the command line."