Using the command line to import source code
To import source code that is not accessible from the public internet, you can use command line tools.
Adding locally hosted code to GitHub
If your code is stored locally on your computer, you can import the code to GitHub using GitHub CLI or Git commands.
Importing an external Git repository using the command line
If your Git repository is stored on a code hosting service that is not accessible from the public internet, you can import the repository using Git on the command line.
Source code migration tools
If your source code uses Subversion, Mercurial, or Team Foundation Version Control and is not accessible from the public internet, you can use external command line tools to import the code.