If you have source code in Subversion, Mercurial, Team Foundation Server, or another Git repository, you can move it to GitHub using GitHub Importer.

GitHub Importer is a tool that quickly imports source code repositories, including commits and revision history, to GitHub for you.

Importing a repository gif

During an import, depending on the version control system you're importing from, you can authenticate with your remote repository, update commit author attribution, and import repositories with large files (or remove large files if you don't want to use Git Large File Storage).

Import action Subversion Mercurial Team Foundation Server Git
Authenticate with remote repository X X X X
Update commit author attribution X X X
Move large files to Git Large File Storage X X X
Remove large files from your repository X X X

Further reading